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

CSS list center align doesnt work!

Reply to Message Icon

Original Message
Name: killgasm
Date: November 1, 2005 at 14:18:41 Pacific
Subject: CSS list center align doesnt work!
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


Report Offensive Message For Removal

Response Number 1
Name: Michael J (by mjdamato)
Date: November 2, 2005 at 06:55:05 Pacific
Subject: CSS list center align doesnt work!
Reply: (edit)

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


Report Offensive Follow Up For Removal

Response Number 2
Name: crandall87
Date: November 2, 2005 at 12:12:32 Pacific
Subject: CSS list center align doesnt work!
Reply: (edit)

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


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: CSS list center align doesnt work!

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software