Computing.Net > Forums > Web Development > CSS list center align doesnt work!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

CSS list center align doesnt work!

Reply to Message Icon

Name: killgasm
Date: November 1, 2005 at 14:18:41 Pacific
OS: win XP home
CPU/Ram: 3.2ghz 512mb DDR
Comment:

this is so annoying, im trying to get to grips with CSS and am trying to make an inline list that is center aligned. ive specified it to be center aligned and it shows up correctly in dreamweaver, but when i preview it in a browser its always to the left! arrrrgghghghhgh!!!

plz help, thanx



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: November 2, 2005 at 06:55:05 Pacific
Reply:

Well there could be any number of things going on here. Which browser(s) did you test? IE does not adhere to the standards as well as others generally do. Plus, dreamweaver could be displaying it incorrectly - I've neevr relied upon a WYSIWYG editor.

Also, where is the list located? Is it within a table cell or div or what?

Adding style="text-align:center;" inside the list opening tag works for me.

Michael J


0

Response Number 2
Name: crandall87
Date: November 2, 2005 at 12:12:32 Pacific
Reply:

i am surprised that it shows up correctly in dreamweaver. maybe it was set to centre align with html instead of css
My Website


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: CSS list center align doesnt work!

Need help in anchoring elements www.computing.net/answers/webdevel/need-help-in-anchoring-elements-/3692.html

css question www.computing.net/answers/webdevel/css-question/610.html

Footer positioning problem www.computing.net/answers/webdevel/footer-positioning-problem/1685.html