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 | 2752 views | 2 replies

lisa315733

CSS Layout Questions

Although I have been designing sites for several years using table-based layout, I am new to CSS Layouts and that is why I purchase CSS Sculptor and am trying to understand the proper way of using CSS to layout a site and have a few questions as to how/why CSS Sculptor formats the CSS the way it does.

An example would be:

#outerWrapper #mainContentWrapper #insideContentWrapper #content #equipment a:link, a:visited

1) I could understand this if every div needs the properties of #outerWrapper but if they don't then shouldn't it be formatted like this instead?

#outerWrapper {
formatting }
#mainContentWrapper {
formatting }
#insideContentWrapper {
formatting }
#content {
formatting }
#equipment a:link, a:visited {
formatting }


2) Also, I have seen on several sites where the CSS div is formated differently and am trying to understand the use or do they all do the same thing?

#wrapper
div#wrapper
d.wrapper


3) Using Resets. I understand the concept of using resets at the top of a css file in case a tag isn't closed but what is the proper formatting?

Is this how a CSS file should be formatted:

Resets (i.e., HTML, Body, p)
Layout DIVs (i.e., #wrapper, #contentWrapper, #leftColumn, #content)
Classes (i.e., img border, etc.)

So should the classes be located at bottom of the CSS file, unless they are specific to a DIV?

I have noticed this because I am continuously running into problems with styling links differently depending on which section I'm on. Many times the previous link style gets overwritten by the one that comes after it so I am trying to understand how this works. For example, if I define my site wide links at the top of the CSS and then get more specific and do #content a:link, #leftColumn a:link, #content a:link, and have these all different, shouldn't each div link be styled differently?


Thanks,
Lisa

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...