FRIHOSTFORUMSSEARCHFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Wrapper in CSS

 


polly-gone
I've noticed in some people's HTML, the class="" attribute will say something like "wrapper outer", but in the CSS, there is no use of the word "wrapper" anywhere?

Why is that?

Thanks,

-Nick Smile Smile Smile
Peterssidan
You can give an element multiple classes. The element will get the properties of both classes.
polly-gone
Of wrapper and outer?

-Nick Smile Smile Smile
Peterssidan
Yes. I don't know the properties of the specific wrapper and outer classes you talk about but here is an example:
Code:
.wrapper { color:green; }
.outer { border:5px solid red; }

Code:
<div class="wrapper">This text will be green,<div>
<div class="outer">this text will have a red border,<div>
<div class="wrapper outer">and this text will be green with a red border!<div>
polly-gone
Yeah, that's what I meant by wrapper and outer.

Thanks,

-Nick Smile Smile Smile!!!!
imagefree
Wrapper outer container contents etc are nothing. Just give meaning to it. For example you may name the most inner div keeping the actual contents as 'outer' or what ever you want.

Usually such naming conventions are used to ease the process of designing the layout.
Related topics

How do I center my layout
CSS div alignment issue, IE and FF (newbie problem)
Do you use css to design a website?
<hr> stilosi con i CSS
Angoli arrotondati con i CSS (senza tabelle)

CSS tools
css + html
Okay, I'm done trying to use CSS for layout.
Tutorials
[Beginner] css rollovers

[Beginner] Classes, Applying classes in CSS
Handling Css using Javascript
CSS OR TABLES
What do you use to make your page layout?
What Is CSS and PHD?
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.