Reply
Old 10-19-2009, 03:12 PM ul list help
Skilled Talker

Posts: 66
Name: chris
Trades: 0
i cant seem to make my list go to the EXACT top of the forum, and EXACT left. Notice how the navbar is just sitting there





CSS for the list:
Code:
ul#navigation {
    margin-left: 0;
    left: 0px;
    top: 0px;
    padding-left: 0;
    list-style-type: none;
    background: #d7d7d7;
    float: left;
    width: 100%
}
ul#navigation li {
    display: inline
}
ul#navigation a {
    display: block;
    float: left;
    padding: .2em 1em;
    text-decoration: none;
    color: #333;
    background: #d7d7d7;
    border-right: 1px solid #630;
}


HTML for the list:
Code:
<ul id="navigation">
<li><a href="google.com">Home</a></li>
<li><a href="google.com">About</a></li>
<li><a href="boobs.com">Contact</a></li>
<li><a href="nips.com">Forum</a></li>
</ul>
__________________
http://www.tech4talk.com
http://www.footfivedesigns.com
WIN 3 months of advertising on tech4talk! Just make 15 posts!
boxiom is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-19-2009, 03:17 PM Re: ul list help
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
Set the body margins to 0 and the ul top margin to 0
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-19-2009, 03:33 PM Re: ul list help
Skilled Talker

Posts: 66
Name: chris
Trades: 0
did that, it moved all the way to the left, but not the top:

Code:
body {
    background-color: #121212;
    text-align: center;
margin: 0 0 0 0;
}


#p {
    font-size:9px;
    font-style:normal;
    color: white;
    padding-left:10px;
    
}

#container {
    text-align: left;
    margin: 0 auto;
    width: 700px;
    background-color:#d7d7d7;
    border-style: solid;
    border-width: 7px;
    border-color: #FFF;
    padding-top: 0px;
    padding-left: 5px;
    padding-right: 5px;
    padding-bottom: 5px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 12px;
    color: #333;
    text-indent: 5px;
}
#container h1 {
    font-size: 36px;
}


ul#navigation {
    margin: 0 0 0 0;
    left: 0px;
    top: 0px;
    padding-left: 0;
    list-style-type: none;
    background: #d7d7d7;
    float: left;
    width: 100%
}
ul#navigation li {
    display: inline
}
ul#navigation a {
    display: block;
    float: left;
    padding: .2em 1em;
    text-decoration: none;
    color: #333;
    background: #d7d7d7;
    border-right: 1px solid #630;
}
__________________
http://www.tech4talk.com
http://www.footfivedesigns.com
WIN 3 months of advertising on tech4talk! Just make 15 posts!
boxiom is offline
Reply With Quote
View Public Profile
 
Old 10-19-2009, 03:38 PM Re: ul list help
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
so do we get to the HTML as well? 'cos the CSS is useless without it.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-19-2009, 03:39 PM Re: ul list help
Skilled Talker

Posts: 66
Name: chris
Trades: 0
html

Code:
</style></head>

<body>

<ul id="navigation">
<li><a href="google.com">Home</a></li>
<li><a href="google.com">About</a></li>
<li><a href="boobs.com">Contact</a></li>
<li><a href="nips.com">Forum</a></li>
</ul>

  
<p><img src="images/index_02.gif" width="471" height="89" align="middle" />
</p>
<p><img src="images/index_06.gif" width="967" height="26" /></p>


    <div id="container">
      <h1>Tech4talk</h1>
      <p><img src="file:///C|/Documents and Settings/Chris/Desktop/luongonetsite/tech4talk.jpg" width="500" height="200" align="center" /></p>
      <p>Tech4talk is a relatively new website our the Luongonetwork. The first active website, it is a forum for the teach savvy and the tech needy. Find tutorials and get help from other forum members to solve problems and learn more. Building computers, Modding your current, Configuring Windows, Installing Linux, Photoshop Graphic Design help, Web Design, Coding, CSS, HTML, Cameras, Flatscreens, Video Games, and much more! Sign up today! http://www.tech4talk.com</p>
    </div>
    
        
</body>
</html>
__________________
http://www.tech4talk.com
http://www.footfivedesigns.com
WIN 3 months of advertising on tech4talk! Just make 15 posts!
boxiom is offline
Reply With Quote
View Public Profile
 
Old 10-19-2009, 04:30 PM Re: ul list help
LadynRed's Avatar
Super Moderator

Posts: 8,823
Location: Tennessee
Trades: 0
You also need to zero out the padding on <body> at the same time you zero out the margins.

If you're going to stick the image inside of <p></p>, then you also must zero out margins and padding on the <p>, at least for the header section.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!
"Using or working with IE is like having to wear a 1970's polyester suit with pantyhose and a girdle, to work everyday"
Carolina Corvette Club
LadynRed is online now
Reply With Quote
View Public Profile
 
Old 10-19-2009, 04:34 PM Re: ul list help
Skilled Talker

Posts: 66
Name: chris
Trades: 0
Got it! thanks!
__________________
http://www.tech4talk.com
http://www.footfivedesigns.com
WIN 3 months of advertising on tech4talk! Just make 15 posts!
boxiom is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ul list help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12691 seconds with 13 queries