/    Sign up×
Community /Pin to ProfileBookmark

CSS is hard… need some help

OK, so i am trying to do this website thing… and it’s hard… things are not lining up ore just plain don’t work… so naturally i am here for advice from you guys (and gals)…

I am trying to make a menu list on the left DIV of my page… naturally i am having problems… in IE my list does not line up to the end of the DIV (all the way to the left)… as for Firefox… well it just shows up like a retarded link list… not pretty at all…

if somebody could clue me in… that would be awesome…

here is a pic of what it looks like in IE
[URL=”http://i126.photobucket.com/albums/p95/stan_chernov/IE-Problem.jpg”]http://i126.photobucket.com/albums/p95/stan_chernov/IE-Problem.jpg[/URL]

and here is one with retarded firefox…
[URL=”http://i126.photobucket.com/albums/p95/stan_chernov/MF-Problem.jpg”]http://i126.photobucket.com/albums/p95/stan_chernov/MF-Problem.jpg[/URL]

My CSS Code

[CODE]/* CSS styles */
body {
text-align:center;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #666666;
font-size:1em;
}
h1,h2 {
color:#0033CC;
}
h1 {
font-size:1.8em;
}
h2 {
font-size:1.4em;
}
#main {
position:relative;
width:745px;
text-align:left;
margin:0px auto;
}
#header {
position:relative;
text-align:center;
width:100%;
height:120px;
border:1px solid orange;
}
#header img {
position:relative;
border:0px;
}
#left_side {
position:relative;
width:150px;
float:left;
padding:5px 2px;
margin:10px 0px 15px 0px;
border:1px solid black;
}
#content {
position:relative;
width:575px;
float:left;
padding:5px 2px;
margin:10px 0px 15px 5px;
border:1px dashed blue;
}
#BottomAddBox {
position:relative;
text-align:center;
font-size:0.8em;
margin:0px auto;
border:1px dotted red;
}
#footer {
position:relative;
text-align:center;
font-size:0.8em;
margin:10px Auto;
border:1px dotted red;
}
#design {
position:relative;
width:75%;
margin:0px auto 20px auto;
}
#design img {
border:0px;
}
.top_block {
position:relative;
overflow:auto;
width:40%;
height:150px;
float:left;
padding:5px 2px;
margin:10px 0px 10px 5px;
border:1px dashed blue;
}
.clearing {
clear:both;
}
.para {
position:relative;
text-indent:15px;
font-size:1em;
padding:5px;

ul#leftnavlist
{
text-align: left;
list-style: none;
padding: 0;
margin: 0 auto;
width: 100%;
}

ul#leftnavlist li
{
display: block;
margin: 0;
padding: 0;
}

ul#leftnavlist li a
{
display: block;
width: 100%;
padding: 0.2em 0 0.2em 0.1em;
border-width: 1px;
border-color: #ffe #aaab9c #ccc #fff;
border-style: solid;
color: White;
text-decoration: none;
background: #ae1401;
}

#leftnavcontainer>ul#leftnavlist li a { width: auto; }

ul#leftnavlist li#active a
{
background: #cc6600;
color: White;
}

ul#leftnavlist li a:hover, ul#leftnavlist li#active a:hover
{
color: white;
background: #cc6600;
border-color: #aaab9c #fff #fff #ccc;
}[/CODE]

My HTML

[CODE]<!–[page]–>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN”
“http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html>
<head>
<title>CSS Based Templates – C and S Design</title>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″/>
<meta name=”keywords” content=””/>
<meta name=”description” content=””/>
<link type=”text/css” rel=”stylesheet” href=”style.css” />
</head>

<body>
<div id=”main”>
<div id=”header”>
HEADER
</div><!– header –>

<div id=”left_side”>
Left Side<br />
<ul id=”leftnavlist”>
<li><a href=”#”>Link 1</a></li>
<li><a href=”#”>Link 2</a></li>
<li><a href=”#”>Link 3</a></li>
<li><a href=”#”>Link 4</a></li>
</ul>
<br />
<br />
Left Menu Goes Here
</div><!– left –>

<div id=”content”>
<br />
<h1>Main Page</h1>
<h2>Content Here</h2>
<p class=”para”>
Actual Text.</p>
</div><!– content –>

<div class=”clearing”></div><!– clearing –>

<div id=”BottomAddBox”>
<b>Adds Go Here<br />BottomAddBox</b><br/>
</div><!– BottomAddBox –>

<div id=”footer”>
<b>Footer<br />Line 2</b><br/>
<span class=’small’>Line 3</span>
<div id=”design”>
<br />

<span style=’font-size: .9em;color: Red; font-family: Verdana, Arial, Helvetica, sans-serif;’>copyright &copy; Subagh Jewelry Design 2008 </span><br />
</div><!–design–>

</div><!– footer –>

</div>

<!– main –>

</body>
</html>
<!–[/page]–>[/CODE]

to post a comment
CSS

6 Comments(s)

Copy linkTweet thisAlerts:
@Agent_KGBauthorJan 19.2009 — PS i figured out how to use CSS validator, and fixed my FireFox error (not having the closing "}" thing at the end of ".Para"...

however my IE problem (of Left UL list not lining up with the border) still exists ;0(... HELP
Copy linkTweet thisAlerts:
@tracknutJan 19.2009 — Not sure exactly where you're at right now, but have you removed the first line (comment) from your html? It needs to start with your !DOCTYPE, or else you toss IE into a tizzy.

Dave
Copy linkTweet thisAlerts:
@Agent_KGBauthorJan 19.2009 — Dave... I love you.... in a very not gay way!!! ?
Copy linkTweet thisAlerts:
@tracknutJan 19.2009 — Um, uh yeah, you're welcome ?

Dave
Copy linkTweet thisAlerts:
@Agent_KGBauthorJan 20.2009 — fixed to show the problem as resolved...
Copy linkTweet thisAlerts:
@WebJoelJan 20.2009 — damn damn DAMN! I just discovered the problem... as have a quarter-dozen other sharp-eyed helpers. ?
×

Success!

Help @Agent_KGB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...