|
| |
|
|
FlowerPower
Posts: 67 Joined: 4/27/2004 Status: offline
|
3 questions on CSS - 5/10/2004 6:53:00
Hi, have now ventured outside the Beginning Web Design forum - scary... Have some CSS-related questions, so here goes: - What does <acronym> ... </acronym> do?
- What is the purpose of the bit in bold in the excerpt below?
quote:
html>body #centercontent { margin-left: 201px; margin-right:201px; } (from http://glish.com/css/7.asp) - I've seen a few examples of nesting <div>s inside each other. Is the benefit of this that the innermost <div>s inherit from the outer ones?
Thanks! (Eagerly awaiting replies - this CSS stuff has been a total revelation to me!)
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: 3 questions on CSS - 5/10/2004 7:03:28
1. acronym • noun a word formed from the initial letters of other words (e.g. laser, Aids). 2. child selector see http://webdesign.about.com/cs/css/qt/tipcsschild.htm so this would apply to only content within the id of centercontent that appears within the body that is a *direct* descendant of the html tag, i think! see also http://www.w3.org/TR/CSS21/selector.html (may need to scroll down to see specifically about child selectors) 3. as i understand if you have div 2 inside div 1 and div 1 has green text and div 2 is set to color: inherit ( in the style sheet) then it should be green!
< Message edited by d a v e -- 5/10/2004 17:06:23 >
_____________________________
David Prescott Gekko web design
|
|
|
|
FlowerPower
Posts: 67 Joined: 4/27/2004 Status: offline
|
RE: 3 questions on CSS - 5/10/2004 7:19:46
Hm, bear with me, please, I'm a bit slow (should've stayed in the noob section, p'raps? )... Let's see... 1. I am aware of the regular meaning of the word acronym, but thought I'd seen it used as an HTML tag. I tested it on a page but couldn't get it to do anything. Am I doing it wrong, or have I just misunderstood. Is there an HTML tag pair called <acronym> and </acronym> that does something to text? Is it supposed to substitute a number of words with their initial letters or something? Oh, wait, I googled and found a page that says what you said. The problem is, I don't see the purpose of the tag. Is it useful for anything? 2. I followed the links and read the articles. Not sure I understand still - if I introduce an ID which I intend to apply to a <div> bang smack in the middle of the page (as in the example I found on that page demonstrating 3 column layout with CSS), is it necessary to specify that this is a child selector of HTML > Body? Couldn't I just call it #centercontent and apply it to the <div>, or is it more to it than meets my untrained eye? 3. Thanks. I got that one. Phew... And I also forgot to say "Thank you!". FP
< Message edited by FlowerPower -- 5/10/2004 7:23:12 >
|
|
|
|
Giomanach
Posts: 6128 Joined: 11/19/2003 From: England Status: offline
|
RE: 3 questions on CSS - 5/10/2004 7:36:21
Acronyms - http://www.w3schools.com/tags/tag_acronym.asp Basically, All they do is allow you to do is add extra text to certain words: <acronym title="Description/Explanation Of Word">Gibberish</acronym> Whenever the user hovers over the word, they will see the text between the "". If I were you, I'd wait for the furry one to answer the child selector one. Dan
_____________________________
|
|
|
|
d a v e
Posts: 4167 Joined: 7/24/2002 From: England (but live in Finland now) Status: offline
|
RE: 3 questions on CSS - 5/10/2004 9:26:04
of course you can just use a simple id selector like #centercontent. the child selector is a just a more refined style declaration. think of it a bit like genetics. rather than specifying all the ginger haired kids in one room (paragraphs in a div for example) you can select all the ginger kids of a certain set of parents e.g. Mr and Mrs Smith, wherever those kids are
_____________________________
David Prescott Gekko web design
|
|
|
|
FlowerPower
Posts: 67 Joined: 4/27/2004 Status: offline
|
RE: 3 questions on CSS - 5/10/2004 10:12:51
Thanks for your patient replies, D A V E and Giomanach. (An unpleasant little voice calls from the back of my mind that I'm nagging about unimportant details and to stop being such a pedantic bore , but I'm choosing to ignore it as I dislike just shrugging my shoulders and moving on when I bump into something I don't understand... so I'll just ask my next question ). Um, I've either not understood the point at all (very possible), or else I've kind of got it, but didn't explain clearly enough the part I don't get. I'll go with the second scenario and see if I can explain better what it is I think I'm not quite getting... (just let me untangle my brain first). In the example I quoted at the beginning of this thread, the #centercontent selector is the child of html > body. In the page where I found it, it is applied to a div in the body section of the page, and I cannot think of another place it could be used. In other words, is it not trivial to specify that it belongs to the html > body part, or is there some other part where it could be plausibly used? Is this child selector stuff part of css2? Is this something that most common browsers can deal with? Once again, thanks a bunch! flowerpower "Du ska itte trø i graset. Spede spira lyt få stå." - Einar Skjæraasen
|
|
|
|
c1sissy
Posts: 5084 Joined: 7/20/2002 From: NJ Status: offline
|
RE: 3 questions on CSS - 5/11/2004 19:35:36
quote:
[...waves absentmindedly while avidly perusing the innumerable pages of CSS magic... ] roflol! Please don't hesitate if you have any other questions! Good luck with your reading!
_____________________________
Deb-aka-c4Ksissy high panjandurum and alpha female of the silverback tribe As decreed by Jesper 5-24-2003. The only stupid question is... the one that is never asked!! http://directory.css-styling.com http://fmsforum.com http://positioniseverything.net/ http://www.tanfa.co.uk/
|
|
|
|
FlowerPower
Posts: 67 Joined: 4/27/2004 Status: offline
|
RE: 3 questions on CSS - 5/12/2004 19:27:47
Thank you c1sissy and Gorilla! Phew, yes, trudging down the winding roads of the information highway network is not without risk - it's easy to forget where you're going and to get lost, for a start - sometimes it's nice to just sit down with a (well-written and authoritative) book on the subject of choice, open up on page 1 and start reading in the only direction I know well - part of the job has been done for you in that you don't have to constantly be doing a mental check to see if you're still on the right path... ...so I'll happily take on board your advice to check out the title you mention. Actually, I'm on my way to the bookstore almost as we speak... (one great thing about living where I live (Philippines) is that books are CHEAP here!) Thanks again!
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|