Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
List in container is indented - how can I get rid of it?
Old 02-09-2009, 02:04 PM List in container is indented - how can I get rid of it?
Novice Talker

Posts: 8
Name: Kate
Trades: 0
Hi! I'm relatively new to CSS and am very frustrated with my site right now. I am trying to add a navigation list inside a container (that is already nested).

The navigation list continually aligns to the right of the container, and I can't get it to align left. I have tried float: left, text-align: left, margin-left = 0, padding-left = 0, everything I can think of.

If I add text to the container it aligns left. Any ideas?

Last edited by ScratchK; 02-09-2009 at 02:59 PM.. Reason: Added code
ScratchK is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-09-2009, 02:19 PM Re: List in container is indented - how can I get rid of it?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
Lets see ALL of your code, please, or a URL where we can see it.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-09-2009, 02:40 PM Re: List in container is indented - how can I get rid of it?
Novice Talker

Posts: 8
Name: Kate
Trades: 0
To offer some more information, I just noticed that one of my other lists is indented by the same amount. It looks like the default that a bulleted list is indented. But I have added the list-style-type:none; to remove the bullets. Is there something else I can do to remove the indent?
ScratchK is offline
Reply With Quote
View Public Profile
 
Old 02-09-2009, 02:52 PM Re: List in container is indented - how can I get rid of it?
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
By the way, you can't make up your own html tags - this, does not exist!
Quote:
<h0>Header</h0>
Headings are H1 - H6 - that's it.

This is incorrect as well:
Quote:
<bodyText>
Again, no such tag. If you want a div
called bodyText, then the proper code is <div id="bodyText">

Your containerBody is not containing anything because you have not
properly CLEARED your floats inside it.

For your navlist problem, you need to ZERO OUT the PADDING for the UL -
ul{padding: 0; margin: 0;}

You should zero out the default margins and padding on ALL major elements
of you page.

Oh, and there's no need for position:absolute on your #sidebarLT.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 02-09-2009, 02:59 PM Re: List in container is indented - how can I get rid of it?
Novice Talker

Posts: 8
Name: Kate
Trades: 0
Thank you!
ScratchK is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to List in container is indented - how can I get rid of it?
 

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.54911 seconds with 12 queries