Trying to make sense of CSS
3 posters
Page 1 of 1
Trying to make sense of CSS
OK so I've read several tutorials about the use of CSS but, I somehow can't seem to find a way to understand...
When I use firefox to view webpages I see they use divs and other but, can somebody tell me what to use them for, the english might be even a little bit to hard for me... and I'm not such a bright person so I'd like to hear an explaination of what they are and how they work...
I often see signs such as "#" "." and names such as "id" and "class"
Is there a way to explain what they are used for and how they work in a little bit more basic english?
thank you for your time
When I use firefox to view webpages I see they use divs and other but, can somebody tell me what to use them for, the english might be even a little bit to hard for me... and I'm not such a bright person so I'd like to hear an explaination of what they are and how they work...
I often see signs such as "#" "." and names such as "id" and "class"
Is there a way to explain what they are used for and how they work in a little bit more basic english?
thank you for your time
Bleachzor- Forumember
- Posts : 211
Reputation : -10
Language : Dutch
Re: Trying to make sense of CSS
well, Bleachzor, it's not as easy as ABC...., books about CSS can help you though. Cause its more of a language...the signs you see like "#" "." are commands that tells something to the script what it should do, and there are many of those signs.. and the names such as "id" and "class" define the thing that needs to follow the signs..
sorry, but I can't think of any clearer explanation ^^
sorry, but I can't think of any clearer explanation ^^
jackalraymaiden- Forumember
- Posts : 47
Reputation : 0
Language : Tagalog
Re: Trying to make sense of CSS
Hello,
Css is easy it's always the same thing.
It's :
For example for a post in phpbb2 the html is like this :
In a selector, a word is a tag name, what follows a point is a class and what follows a # is an id.
For exemple with the screenshot above if I put :
Then in these div tag, only the ones with a class being postbody will be keeped.
And with img after, we select all img tag that are in the div tag with the class postbody.
Here is 4 examples page :
Cordially.
Css is easy it's always the same thing.
It's :
- Code:
selector {
property: value;
property: value;
property: value;
property: value;
property: value;
}
selector {
property: value;
property: value;
property: value;
property: value;
property: value;
}
selector {
property: value;
property: value;
property: value;
property: value;
property: value;
}
For example for a post in phpbb2 the html is like this :
In a selector, a word is a tag name, what follows a point is a class and what follows a # is an id.
For exemple with the screenshot above if I put :
- Code:
div.postbody img
Then in these div tag, only the ones with a class being postbody will be keeped.
And with img after, we select all img tag that are in the div tag with the class postbody.
Here is 4 examples page :
- Id : http://tools.css3.info/selectors-test/test-id.html#id
- Class : http://tools.css3.info/selectors-test/test-class.html#class
- Only one tag : http://tools.css3.info/selectors-test/test-element.html#element
- Two tag : http://tools.css3.info/selectors-test/test-descendant.html#descendant
Cordially.
Similar topics
» Warning message doesn't make sense, can this be changed?
» Another ad-sense not working
» Google Ads Sense
» Google Ad-Sense not showing
» Question Regarding Graphics In A Sense
» Another ad-sense not working
» Google Ads Sense
» Google Ad-Sense not showing
» Question Regarding Graphics In A Sense
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum