Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / September 2007



Tip: Looking for answers? Try searching our database.

CSS question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mao - 21 Sep 2007 09:21 GMT
html,
body {
margin:0;
padding:0;
height:100%; /* 100 % height */
}

Above is a part of a CSS file I found in the Internet.  I have been
searching in the Internet to find out what does the 1st line (html,)
mean.  Can any one tell me what does it mean?

KC
Jukka K. Korpela - 21 Sep 2007 09:32 GMT
Scripsit mao:

> html,
> body {
[quoted text clipped - 4 lines]
>
> Above is a part of a CSS file I found in the Internet.

It contains a most spectacular comment. It is potentially useful for
misleading people, if the actual CSS code is later changed and the comment
is not. :-)

>  I have been
> searching in the Internet to find out what does the 1st line (html,)
> mean.  Can any one tell me what does it mean?

It means that you need to read a primer, a tutorial, or a book on CSS now.
It's a matter of very basic constructs in CSS, so if you needed an
explanation, you need a crash course in CSS before trying to understand
other people's CSS code (which is often much more difficult and much less
useful than writing good CSS code of your own).

In CSS, you specify that some declarations are to be applied to some
elements by listing selectors that refer to elements, using a comma as a
separator. At the simplest, a selector is just an element's name, like html
or body. Thus

html, body { something }

is equivalent to

html { something }
body { something }

(and the line break is irrelevant: it is equivalent to a space in CSS).

Signature

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

dorayme - 21 Sep 2007 23:23 GMT
> Scripsit mao:
>
[quoted text clipped - 9 lines]
> In CSS, you specify that some declarations are to be applied to some
> elements by listing selectors

No, no... OP is wanting you to tell him about the html element.
It looks so strangely ephemeral.

Signature

dorayme

Jukka K. Korpela - 22 Sep 2007 08:04 GMT
Scripsit dorayme:

> No, no... OP is wanting you to tell him about the html element.

Do you mean that OP does not know about HTML?

> It looks so strangely ephemeral.

I know what you mean, and I guess you know what I meant.

Signature

Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

mao - 26 Sep 2007 05:06 GMT
> In article <5jLIi.226289$PF4.135...@reader1.news.saunalahti.fi>,
>
[quoted text clipped - 17 lines]
> --
> dorayme
Hi every one,

Here is the place where I found the CSS codes.
http://www.456bereastreet.com/archive/200609/css_frames_v2_fullheight/
julian.bash - 26 Sep 2007 16:33 GMT
> > In article <5jLIi.226289$PF4.135...@reader1.news.saunalahti.fi>,
>
[quoted text clipped - 21 lines]
>
> Here is the place where I found the CSS codes.http://www.456bereastreet.com/archive/200609/css_frames_v2_fullheight/

html, body { *rules* }. *rules* are applied to both the html and the
body-element.
mao - 27 Sep 2007 04:31 GMT
> > > In article <5jLIi.226289$PF4.135...@reader1.news.saunalahti.fi>,
>
[quoted text clipped - 26 lines]
>
> - Show quoted text -

Thanks for your reply.
Gus Richter - 27 Sep 2007 07:09 GMT
>>> In article <5jLIi.226289$PF4.135...@reader1.news.saunalahti.fi>,
>>>> Scripsit mao:
[quoted text clipped - 17 lines]
> html, body { *rules* }. *rules* are applied to both the html and the
> body-element.

That should be:    html, body { *declaration(s)* }
The whole thing is a *rule* (selector followed by a declaration block).
<http://www.w3.org/TR/CSS21/syndata.html#rule-sets>

Nothing wrong with what you were trying to say about grouping selectors.
Ref: <http://www.w3.org/TR/CSS21/selector.html#grouping>

Signature

Gus

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.