close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

CSS Layout Questions

Thread began 4/17/2009 4:13 am by lisa315733 | Last modified 4/18/2009 4:47 am by lisa315733 | 2751 views | 2 replies

Justin Nemeth

Hi Lisa,

1)
That code limits to the scope of the css. What I mean is code like "#outerWrapper #contentWrapper" corresponds to HTML like "<div id="outerWrapper"><div id="contentWrapper"></div></div>". Notice how the #contentWrapper is nested inside the #outerWrapper div. If the #contentWrapper was somewhere outside of the #outerWrapper, the css would not be applied. It justs a way of setting the scope of your css and should help with possible cascading issues if you are too general with the css declarations.

2)
#wrapper - will style any element with an id of wrapper
div#wrapper - will only style a div tag with an id of wrapper

If you prefix and #id or .class with a HTML tag name, it just limits what the css can be applied to. In general, being this specific is not a requirement, but it might make your css easier to read in some cases. For example, if you have css like "input.phoneNumber", that would cleary indicate you were styling an input format element.

3)
The reset css at the top of the css code is to help level the field between the various browsers. It helps each browser be more consistent in how it renders things since we are essentially telling it what to use as a baseline.

CSS is read top down and things will cascade down like you mentioned. So say at the top of the css you have a very general declaration like "a { color: red;" and later on you have "a.customLink { font-weight: bold; }", your a.customLink will also be read since the css would cascade down.

--

Let me know if you have any other questions.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...