WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > CSS not behaving properly

Reply
  Thread Tools Display Modes
Old 11th September 11, 03:24 PM   #41
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,196
Default Re: CSS not behaving properly

Try setting it as a global PROPERTY of child containers of a particular parent as I did
chrishirst is offline   Reply With Quote
Old 11th September 11, 04:03 PM   #42
bgareth
WLC Member
 
bgareth's Avatar
 
Join Date: Jul 2010
Posts: 40
Default Re: CSS not behaving properly

I don't know what this means...
__________________
Kind Regards,

Ben
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
bgareth is offline   Reply With Quote
Old 11th September 11, 04:23 PM   #43
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,196
Default Re: CSS not behaving properly

For example
Code:
#container div {
    min-height: 98%;
}
chrishirst is offline   Reply With Quote
Old 14th September 11, 12:54 PM   #44
bgareth
WLC Member
 
bgareth's Avatar
 
Join Date: Jul 2010
Posts: 40
Default Re: CSS not behaving properly

Thanks Chris,

I've edited the CSS and HTML to include this but reworded the div to globalminheight which makes more sense to me. I must have done something wrong as the column lengths have not extended.

Two other questions:

1) Do you have to specify every div opening statement like this:

Code:
<div id="div1">
          <div id="div2">
          <div id="div3">
and then...

Code:
</div>
          </div>
          </div>
or is there a way of doing something like this:

Code:
<div id="div1" "div2" "div3">
also, I'm a little confused about those statements in the CSS that do not require a "#" and those that do...do those with and without a # need to be called with a div opener in the HTML?

Thanks and please have patience with me - I probably am frustrating!

Ben :-)
__________________
Kind Regards,

Ben
To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
bgareth is offline   Reply With Quote
Old 15th September 11, 07:25 PM   #45
chrishirst
Banned
 
Join Date: Jun 2006
Location: Blackp ool U.K.
Posts: 3,196
Default Re: CSS not behaving properly

Quote:
or is there a way of doing something like this:

Code:
<div id="div1" "div2" "div3">
No there isn't.

If you never need to refer DIRECTLY to an element they do not need an ID

If all the child elements share the same properties the do not need an ID OR a class applied to them, you simply style them using the parent ID or class name plus the child element type.

Also rulesets applied using an ID have precedence over rules applied using a classname.
chrishirst is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:56 AM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyrightę 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.