|
|
 |
Re: FN-FORUM: Another CSS question
date posted 23rd August 2003 22:06
Tony Crockford wrote:
> try adding a height declaration to the div and you'll find your links
> inside it. (no I don't know why!)
Ok!
> Couple of questions for you.
>
> why not just have the links inside the div instead of inside p's? you
> can give a link a class too.
>
> you have placed them inside paragraphs which in your code example are
> not styled therefore they will use the default style of the browser.
Ah, I forgot to paste the p style in my code, but p is styled. Good
point though, there's no need for the p's.
> You have also floated them - I see why, but floats bring up a whole load
> of issues that you have to be careful with.
I'm coming to realise this.
> you've also mixed the style declarations between the style sheet and the
> html - not good practice since it can make bug hunting very tricky in a
> big site.
Good point, I'm just trying to make my stylesheet as generic as
possible, but I guess that that will just give me more work - which is bad.
> if it were me I'd have done this:
> Note that netscape and IE handle padding differently depending on doctype.
This too I am learning. Nice one Crockers, thanks very very much for
your help. I shall now go and buy a large book and read it, I need to
get on top of this. I'm not a web designer but I still do some web work
and I want to get it right. I'm making sure my stuff validates but
that's only a small part of the battle :)
Thanks a lot,
Chrid
--
http://www.chridmeister.co.uk
"Always a few gears short of a ninja death robot"
|
 |
|