|
|
 |
RE: FN-FORUM: Another CSS question
date posted 23rd August 2003 22:32
I find these links quite helpful for CSS.
http://www.w3schools.com/css/css_reference.asp
http://www.cre8asite.net/browseCats.asp?category=49
http://www.csszengarden.com/
The top one is a CSS reference, & the other two have some excellent CSS
code.
1 tip, you wont be able to create a CSS stylesheet that will work for all
browser, you will need to use a Browser Sniffer and then use a different
stylesheet for each browser.
hope this helps.
Jamie
Low Cost Windows Web Hosting from ?10 per year -
http://www.eyota-web-hosting.co.uk
Bespoke Web & IT Solutions - http://www.eyota.co.uk
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of The
Chridmeister
Sent: 23 August 2003 22:40
To: FN-FORUM / [EMAIL REMOVED]
Subject: Re: FN-FORUM: Another CSS question
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"
==========
redmail.com - webmail with a difference!
10Mb for just GBP 9.99 a year. Launch special 1Gb for GBP 99.99 a year
IMAP, POP3, Spam Filtering and Anti Virus as standard.
Visit http://www.redmail.com/?fl-signup to join.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|