Dynadot โ€” .com Transfer

Liquid CSS Help Please

SpaceshipSpaceship
Watch

proudcdn

Established Member
Impact
1
Hi All,

Yes ... I am a nOOb still.

Ok I have read up on Liquid CSS design. I am trying to get my page to display well regardless of broswer and resolution.

Here is what I have so far:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Web Page</title>
<style type="text/css">

body
{
margin: 0;
padding: 0;
}

#header {
height: 100px;
background-color: #666;
margin-bottom: 5px;
}
#gutter
{
float: left;
width: 1%;
height: 1px;
}

#col1
{
float: left;
width: 20%;
height: 100px;
background-color: #999;
}

#col2
{
float: left;
width: 77%;
height: 100px;
margin-left: 1%;
background-color: #999;
}

#nav, #nav ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
float : left;
width : 11em;
}

#nav li { /* all list items */
position : relative;
float : left;
line-height : 1.25em;
margin-bottom : -1px;
width: 11em;
}

#nav li ul { /* second-level lists */
position : absolute;
left: -999em;
margin-left : 11.05em;
margin-top : -1.35em;
}

#nav li ul ul { /* third-and-above-level lists */
left: -999em;
}

#nav li a {
width: 11em;
width : 10em;
display : block;
color : black;
font-weight : bold;
text-decoration : none;
background-color : white;
border : 1px solid black;
padding : 0 0.5em;
}

#nav li a:hover {
color : red;
background-color : black;
}

#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li.sfhover ul ul, #nav li.sfhover ul ul ul {
left: -999em;
}

#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li.sfhover ul, #nav li li.sfhover ul, #nav li li li.sfhover ul { /* lists nested under hovered list items */
left: auto;
}

#content {
margin-left : 12em;
}
</style>

<script type="text/javascript"><!--//--><![CDATA[//><!--

sfHover = function() {
var sfEls = document.getElementById("nav").getElementsByTagName("LI");
for (var i=0; i<sfEls.length; i++) {
sfEls.onmouseover=function() {
this.className+=" sfhover";
}
sfEls.onmouseout=function() {
this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
}
}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);

//--><!]]></script>

</head>
<body>
<div id="header"></div>
<div id="gutter"></div>
<div id="Col1">

<ul id="nav">

<li><a href="#">Menu 1</a>
<ul>
<li><a href="#">SubMenu 1</a></li>
</ul>
<li><a href="#">Menu 2</a>
<ul>
<li><a href="#">SubMenu 2</a></li>
<li><a href="#">SubMenu 2</a></li>
</ul>
<li><a href="#">Menu 3</a>
<ul>
<li><a href="#">SubMenu 3</a></li>
<li><a href="#">SubMenu 3</a></li>
<li><a href="#">SubMenu 3</a></li>
</ul>
</div>
<div id="col2"></div>
<div id="footer"></div>
</body>
</html>


My columns etc seem to work fine, but I just can't tweak the menu to scale as well.

Any thoughts?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Honestly I would just have the menu column stay static (make sure it looks good at low res) and scale the banner and content boxes.
 
0
•••
So configure the menu to look good at 800 x 600 and leave it with absolute positioning?

What about for the content that will be going into the main column (col2)?

Is there no way to make the content fluid within the floating <div>? Like have it take up a certain percent of the width of the <div>?
 
0
•••
0
•••
Hmmm ...
 
0
•••
It's all up to you man, there's no right or wrong interface really.
 
0
•••
Here is the trouble:

I want my site to have a header and two columns.

Column 1 is the menu.

Column 2 is where I want the menu selections to open up into.

I am having a hard time doing this with CSS. I know how to do it with frames or tables, but it seems most people here feel that is the "amateur" way to go about it. I want my site to look good in many browsers and many resolutions. From what I can tell liquid CSS is the way to go ...

However CSS is new to me.
 
0
•••
I really only know how to format in css not dynamically display information. I know of a way it could be done, but I have no clue if it's the right way to do it.
 
0
•••
Anyone else have an idea ... Or a link to a tutorial on how to do this?
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back