3 replies [Last post]
smartfish
smartfish's picture
Offline
newbie
Last seen: 2 years 44 weeks ago
Timezone: GMT+6
Joined: 2012-02-11
Posts: 2
Points: 3

Hi

First of all I am a newbie. I have googled for some info about CSS but cant help myself.

Some CSS properties are dependent on other properties to make their effect. Such as left, top, bootom, right are dependent on position property, whether position values is static or not.

What I want to know, is there any resources or tutorials where I can find information about which properties are dependent on which properties. It will be very helpful if there is a table.

Sorry for my poor English.

Thank You

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 1 week 1 day ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

But there is a veritable glut

But there is a veritable glut of guides and instruction on the net regarding CSS. Sometimes you just have to piece together the puzzle from many sources and accept that this aspect of learning things like properties and their values takes time.

This might help a little:
http://csscreator.com/properties

Also the main home of the specs at the W3C is somewhere to look

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

smartfish
smartfish's picture
Offline
newbie
Last seen: 2 years 44 weeks ago
Timezone: GMT+6
Joined: 2012-02-11
Posts: 2
Points: 3

Please got my point

Hugo wrote:

But there is a veritable glut of guides and instruction on the net regarding CSS. Sometimes you just have to piece together the puzzle from many sources and accept that this aspect of learning things like properties and their values takes time.

This might help a little:
http://csscreator.com/properties

Also the main home of the specs at the W3C is somewhere to look

Sad( Sad(

Sorry brother. I don't think you got my point what I ask. I want to know about dependency between two CSS property, not the compatibility of CSS properties on different browser.

Think the following scenario :

.class_A{position:static;left:250px}

If you put a HTML element in class_A, the property declared "left:250px" will not take effect as it's "position" applied to "static". Here "left" property is dependent on "position" property.

However thanks for your reply.

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 10 hours 19 min ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9276
Points: 3282

It's not that simple

Hugo pointed you in the right direction. There are a lot of interactions, but the holy writ is found here. CSS is a powerful declaratory presentation language; don't expect some bunch of power point slides to cover it all.

Be prepared to do some serious digging into the specs, and then going back to pick up what you missed the first three or four times.

cheers,

gary

UI design should be egoless; if you succumb to the temptation to show off, you’re probably doing it wrong. (from ESR)

There are enough html & css demos and tutorials to be interesting. Please visit.