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
Issue with alignment (List I think)
Old 09-19-2007, 05:56 AM Issue with alignment (List I think)
nickharper's Avatar
Extreme Talker

Latest Blog Post:
Testing this bad boy out!!!!!
Posts: 221
Name: Nick
Location: Coventry, UK
Trades: 1
Hi Guys,

On my site I am having a problem with aligning a list inside a div.

If you take a look at http://www.smarterwebdesign.co.uk/logos.php you can see that where it says "Smarter Webdesign" on the right it is aligned to the right.

I have tried everything I can to get it back to the left but I can't seem to figure out how.

The classes around it are:

#worknav
#worknav ul
#worknav li

I have played about with all of these with no luck.

Can anybody help?

Thanks
__________________

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


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

nickharper is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-19-2007, 07:32 AM Re: Issue with alignment (List I think)
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
Adding to the div that they are in. For Example:

Code:
<Style>
#worknav {
text-align: left;
}

#worknav li {
padding: 0px;
margin: 0px;
}
</style>
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Old 09-19-2007, 08:46 AM Re: Issue with alignment (List I think)
nickharper's Avatar
Extreme Talker

Latest Blog Post:
Testing this bad boy out!!!!!
Posts: 221
Name: Nick
Location: Coventry, UK
Trades: 1
Hi,

I have tried that and tried other different things but it doesn't seem to want to budge back over

Thanks

Nick
__________________

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


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

nickharper is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 11:06 AM Re: Issue with alignment (List I think)
Junior Talker

Posts: 4
Name: Anshoo Grover
Location: Kanpur, India
Trades: 0
2 Things I think :

1. add a background:red for instance on the <li> css and see the start of it on the left ... if the red bg. starts from where u want the text to start .. do this:
- just add a margin:0px; padding:0px; to the <li> css (don't forget to remove the bg-color)

2. try adding an align="left" to the <ul> directly.

Hope that helps .
Anshoo
anshoogrover is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 01:48 PM Re: Issue with alignment (List I think)
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
You have several text-align:center in the css for the various #rightbar and #worknav. Remove them.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 04:17 PM Re: Issue with alignment (List I think)
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Why do you have clear:left on the UL ?? If you're trying to clear the float on the div, this is the wrong place to do it.

Adding padding: 0; to ul#worknav will bring the list back to center. If you want it left, then you have to remove the text-align: center that's in there.

Also, you've got a height on the list of 10px. This is not big enough to contain the actual list text - I made it 1.2em and it worked much better.
__________________
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 09-21-2007, 05:41 AM Re: Issue with alignment (List I think)
nickharper's Avatar
Extreme Talker

Latest Blog Post:
Testing this bad boy out!!!!!
Posts: 221
Name: Nick
Location: Coventry, UK
Trades: 1
Thankyou for your replies.

LadynRed

Thankyou for your help.

I had not noticed about the height being so small but that is now sorted as well as the issue I first asked about.

Again, thanks
__________________

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


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

nickharper is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Issue with alignment (List I think)
 

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