Click to See Complete Forum and Search --> : How To Align In CSS?
sharkey
01-14-2004, 07:55 AM
Hey i was wondering how to align links like i have recently done with HTML. But now i want to do it with CSS as i am redesigning my HTML tables site into CSS Layers. Please check the link below in the horrible frame that i am changing at the top there is a horizontal navigation table with an orange-black gradient in it with links. How would you align the links with CSS exactly the way that it is there.
Cheers
Chris Sharkey
davidbrent
01-14-2004, 08:19 AM
Originally posted by sharkey182uk
Please check the link below in the horrible frame that i am changing at the top there is a horizontal navigation table with an orange-black gradient in it with links. How would you align the links with CSS exactly the way that it is there.
i dont understand, are you referring to a referring URL which is not actually shown in your original post?
sharkey
01-14-2004, 08:31 AM
Sorry mate forgot the URL. The Devils Eyes (http://www.thedevilseyes.co.uk/index2.html)
Sorry Again.
sharkey
01-14-2004, 08:53 AM
Hey ive fixed that problem but now have a new one. The left navigation menu below the horizontal one. They are links but in my new redesign i have to put the links in a paragraph because you arent allowed to do more than 2 <BR> on a page so ive heard. Is there anyway with CSS to take away the line spacing that it gives you in the paragraphs with CSS.
Cheers
Chris Sharkey
Robert Wellock
01-14-2004, 11:09 AM
You are allowed more than two <br /> on page, which moron told you that you could not.
If you want to get rid of white space created by paragraphs you could use margin-bottom: 0px or make it inline. Though you might have wanted to use <span> in the first place.
sharkey
01-14-2004, 11:11 AM
Yeah i kept telling them that but he keeps saying its against w3c standards.
Cheers thanks for clarifying it.
Robert Wellock
01-14-2004, 11:17 AM
Tie them to a stake and burn them for heresy since they are not true believers... :D
ray326
01-14-2004, 12:34 PM
That nav bar would be better built using a div containing an unordered list for the links. That would also make it about 90% smaller because all that presentation junk would be in the style sheet.
spufi
01-14-2004, 02:02 PM
I think what they mean is that you aren't supposed to use two <br> tags back-to-back in your code, and they are correct in that. Yes, you can do it, but there are better ways of pulling off what you want.
sharkey
01-14-2004, 05:24 PM
Yeah now i get it i heard my friend wrong. What ways could this be acheived.
Cheers
spufi
01-14-2004, 09:50 PM
I looked at your main.html and I don't see where you are using a <p> tag. And since I've been linking to the article at least once a day as of late, you might want to check out the Taming List link I just added in my sig.
sharkey
01-15-2004, 06:11 AM
Yeah soz i was meant to say that in my new main.html that im using <p> tags. Hey thanks for telling me bout that link. Theres alot of information on that which i didnt know.
Cheers again