navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

3 questions on CSS

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> 3 questions on CSS
Page: [1]
 
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

(in reply to FlowerPower)
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 >

(in reply to d a v e)
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

_____________________________




(in reply to FlowerPower)
FlowerPower

 

Posts: 67
Joined: 4/27/2004
Status: offline

 
RE: 3 questions on CSS - 5/10/2004 8:45:53   
Heh heh...

I'll happily let these acronyms lie in peace till the next blue moon comes round. Can't see myself needing them anytime soon. Thanks for clarifying, though - I hate not understanding the code I read. (And yet I keep viewing the source code on all these funky new sites... Glutton for punishment, I guess. :))

Although I seem to have got the 3 columns to work on my site (using CSS), I'll be very interested in the answer on child selectors - I haven't tested in all major browsers, so was thinking perhaps there could be issues with simply just using #centercontent (without the HTML > Body bit in front) for previous version of IE or for some other browser or for some scenario that I haven't thought of or tested yet. There must be some reason they included in on that aforementioned site... right?

Thanks,
(awaiting with bated breath the verdict from the great furry one)

(in reply to Giomanach)
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

(in reply to FlowerPower)
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

(in reply to d a v e)
c1sissy

 

Posts: 5084
Joined: 7/20/2002
From: NJ
Status: offline

 
RE: 3 questions on CSS - 5/10/2004 11:18:45   
Hi FlowerPower, welcome to the forums.

Here are some links for you to look at. I also had difficulty with this area of css. Also if you look through the css links thread in here, I'm sure that you will find many helpful links that will guide you along in your learning.
http://www.hwg.org/resources/faqs/cssFAQ.html
http://css.maxdesign.com.au/selectutorial/index.htm
http://www.blooberry.com/indexdot/css/syntax/selectors/selectors.htm

I hope that something here helps you out!

_____________________________

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/

(in reply to FlowerPower)
FlowerPower

 

Posts: 67
Joined: 4/27/2004
Status: offline

 
RE: 3 questions on CSS - 5/11/2004 19:17:47   
Thank you!

I can see I've got quite a bit of reading to do here. Will hopefully return as a slightly more knowledgeable and skilled web designer.

[...waves absentmindedly while avidly perusing the innumerable pages of CSS magic... :) ]

flowerpower

(in reply to c1sissy)
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/

(in reply to FlowerPower)
gorilla

 

Posts: 2974
From: Denmark
Status: offline

 
RE: 3 questions on CSS - 5/12/2004 15:21:06   
Good luck with your reading and learning.

However while I agree that the material above is good, I suggest that instead of wading through all of that you instead buy a copy of :

HTML for the World Wide Web, Fifth Edition with XHTML and CSS: Visual QuickStart Guide

By Elizabeth Castro.

Her site and that of her book are here:

http://www.cookwood.com/html5ed/

It shows how to use CSS in context which, with all due respect, none of the resources above do properly. Moreover you can download all of her code, and participate in the excellent fora.

For a good grounding that will get you from novice to "power user" I never suggest any resource other than Castro's book. Once you've absorbed her excellent material then move on to the others.

This is the approach I adopt with all my students, including those on postdoctoral work who need to harness CSS as part of an IA approach.

It goes without saying that you should also download and print a copy of the spec from w3c.

Good luck

< Message edited by gorilla -- 5/12/2004 15:23:41 >


_____________________________

Mháircaish

Signature self-censored to protect the sensibilities of the thin-skinned :).

May we never confuse honest dissent with disloyal subversion. – Dwight D. Eisenhower



(in reply to c1sissy)
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!

(in reply to gorilla)
ellipisces

 

Posts: 849
Joined: 12/14/2003
Status: offline

 
RE: 3 questions on CSS - 5/12/2004 19:54:24   
<acronym> is a tag designed for handicapped people. If the screen reader comes across and acronym like ASP what does it do?

it says asp, like in snake. That could get very confusing for a blind person. Actually probably kinda funny too

:):):)

_____________________________


(in reply to FlowerPower)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> 3 questions on CSS
Page: [1]
Jump to: 1





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