CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 7th, 2004, 11:03 PM
R++'s Avatar
R++ R++ is offline
mentally screwed up
Dev Shed Novice (500 - 999 posts)
 
Join Date: Mar 2004
Location: México
Posts: 857 R++ User rank is Sergeant (500 - 2000 Reputation Level)R++ User rank is Sergeant (500 - 2000 Reputation Level)R++ User rank is Sergeant (500 - 2000 Reputation Level)R++ User rank is Sergeant (500 - 2000 Reputation Level)R++ User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Week 1 Day 19 h 31 m 41 sec
Reputation Power: 19
layers overlapping in liquid css layout

i'm trying to write a liquit layout based in layers and css and have the next code:

Code:
<style type='text/css'>
<!--
body{font-family:Verdana, Arial, Helvetica, sans-serif; margin:5px 5px 5px 5px; position:relative;}
#header{border:1px solid #000000; width:100%; height:60px; position:absolute; top:0px; left:0px; min-width:600px;}
#menu{border:1px solid #000000; position:absolute; top:60px; left:0px; width:15%; min-width:150px;}
#content{border:1px solid #000000; position:absolute; top:60px; left:15%; width:85%; min-width:450px;}
-->
</style>

and in the body:
Code:
<body>
<div id='header'>header</div>
<div id='menu'>menu links</div>
<div id='content'>contents</div>


the little problem here is thata due to the percentages used to determine the left position of the contents layer it overlaps with the menu layer when i resize the window
but i've seen a lot of pages that do not behave this way... what am i missing????
__________________
<RamÔ_ôn >
...and i will strike down upon thee with great vengeance and furious anger those who attempt to poison and destroy my brothers, and you will now my name is the LORD when i lay my vengeance upon you
Pulp Fiction

Reply With Quote
  #2  
Old April 8th, 2004, 01:17 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,555 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 7 h 49 m 53 sec
Reputation Power: 630
Don't become infatuated with absolute positioning. Like floats, there are lots of 'gotchas' waiting for the unwary. Also, forget about min/max anything. IE, dumba—— that it is, does not recognize the attribute.

I think this is close to what you want;
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta name="generator"
    content="HTML Tidy for Linux/x86 (vers 1st March 2002), see www.w3.org" />
    <meta http-equiv="content-type"
    content="text/html; charset=ISO-8859-1" />

    <title>Liquid Layout</title>
<style type="text/css">
/*<![CDATA[*/

body {
    margin: 5px;
    }

#header {
    border: 1px solid black;
    height: 60px;
    }

#menu {
    border: 1px solid black;
    width: 15%;
    float: left;
    }

#content {
    border: 1px solid black;
    margin-left: 15%;
    }

/*]]>*/
</style>
  </head>

  <body>
    <div id="header">
      <h1>Generic Header/Logo</h1>
    </div>
    <!-- end header -->

    <div id="menu">
      <ul>

        <li>Generic</li>

        <li>Menu</li>

        <li>Items</li>
      </ul>
    </div>
    <!-- end menu -->

    <div id="content">
      <p>All kinds of generic content</p>
    </div>
    <!-- end of content -->
  </body>
</html>
cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

Ask a better question, get a better answer.

Last edited by kk5st : April 8th, 2004 at 01:19 AM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > layers overlapping in liquid css layout


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway