9 replies [Last post]
skynarc
skynarc's picture
Offline
Regular
Last seen: 13 years 1 day ago
Joined: 2006-05-10
Posts: 32
Points: 0

Hi Guys,

I apologise if I have asked this before (dont think I have).

Please have a look at this Nav for me and tell me what would cause this long menu name to ignore the padding rule in my css.

http://projects.sixfoot.co.za/coda

Many thanks

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 7 years 31 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

[Solved] Long menu names do not align

Please, please. please;

No DTD!!!
Errors in markup!!

<!----------------------> is not allowed it's illegal syntax

Table layouts are a shame but all we can do is offer encouragement not to use them.

Can you fix up the first two points and then we can help.

Hugo.

Edit/ in fact skynac we discussed the DTD issue in another earlier post so there's no excuse really, I even supplied one for you to use :?
http://www.csscreator.com/css-forum/ftopic18921.html

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

skynarc
skynarc's picture
Offline
Regular
Last seen: 13 years 1 day ago
Joined: 2006-05-10
Posts: 32
Points: 0

[Solved] Long menu names do not align

Freakin DTD's are driving me nuts so I took them out! Laughing out loud

Ok...I'll do that first.

skynarc
skynarc's picture
Offline
Regular
Last seen: 13 years 1 day ago
Joined: 2006-05-10
Posts: 32
Points: 0

[Solved] Long menu names do not align

Quote:
(Ok...I have read through your DTD page at A List Apart and made some sense of it...Can I make a suggestion though? Anyone who is new to any XHTML or HTML will not understand what DTD to use because it doesn't explain what all those versions do...)

So now I have added a transitional DTD (because I understand this as a transition from HTML to XHTML?) but it's still not working.

I've also now tried the LOOSE DTD you sent me Hugo but that aint working either... :?

I have only added to it to the index page right now cause I dont want to duplicate until it works...

Thanks again

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 15 weeks 6 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

[Solved] Long menu names do not align

Which bit is the problem?

Verschwindende wrote:
  • CSS doesn't make pies

skynarc
skynarc's picture
Offline
Regular
Last seen: 13 years 1 day ago
Joined: 2006-05-10
Posts: 32
Points: 0

[Solved] Long menu names do not align

Hey Pineapple Head Smile

The side menu which says "Other Foundational Documents"

I have had this problem on several occasions now...

chikoppi
Offline
Enthusiast
Last seen: 11 years 35 weeks ago
Timezone: GMT-6
Joined: 2006-06-25
Posts: 85
Points: 2

[Solved] Long menu names do not align

I'll take a crack at this one. Smile

It looks like your line of text carries the class "a.subMenu":

a.subMenu {padding: 0 0 0 10px;}

Because the text is an inline element the padding only appears in front of the first character. You might try adding "diplay: block;" to your class definition. This should force the text to behave as a box.

Disclaimer: I'm pretty new to this myself, you might want to wait for verification from someone better qualified.

skynarc
skynarc's picture
Offline
Regular
Last seen: 13 years 1 day ago
Joined: 2006-05-10
Posts: 32
Points: 0

[Solved] Long menu names do not align

Laughing out loud Also new to CSS chikoppi...I'll try anything!

Thanks...will let you know.

skynarc
skynarc's picture
Offline
Regular
Last seen: 13 years 1 day ago
Joined: 2006-05-10
Posts: 32
Points: 0

[Solved] Long menu names do not align

YOU'RE A WIZZARD ALREADY!!!!

Thanks chikoppi

Have a good one!

thepineapplehead
thepineapplehead's picture
Offline
Moderator
Last seen: 15 weeks 6 days ago
Timezone: GMT+1
Joined: 2004-06-30
Posts: 9683
Points: 819

[Solved] Long menu names do not align

I'll have to remember that one, thanks Chiko!

Verschwindende wrote:
  • CSS doesn't make pies