...

View Full Version : CSS Min Height Problems



bgareth
09-14-2011, 02:43 PM
Hello,

Two questions, The first is that I am struggling to get my head round making the min-height work on my page. My page is at http://www.garethgroup.com/test/floatcolumnsattempt/index.html. This is not a commercial website but more of a website of attempted collaborations.

I am also wondering if there is a quicker way of opening divs - for example, can you use div id's like this -


<div id="div1" "div2" "div3">


Thanks and Kind Regards,

Ben.

teedoff
09-14-2011, 02:49 PM
I have no idea what you're asking in either of your.... questions??

min-height should work how? Whats NOT working in your page? What do you WANT it to do?


A div must be <div></div> that's it. You must have an opening div tag and a matching closing div tag for each element. If that's what you're asking. Again, you need to be more descriptive.

vikram1vicky
09-14-2011, 03:03 PM
I think your issue is with IE regarding min-height. Following is cross browser code for this issue:


.class {
min-height: 400px;
height:400px;
height:auto !important;
}


What you mean by quicker way???

alykins
09-14-2011, 03:07 PM
to add more specifically to Teed's answer you can only have one ID per element per page... ie you cannot have two divs named (for example) id="one" and you cannot have multiple ID's as per your example. If you are doing this because you are trying to assign multiple "styles" you CAN have multiple classes for one element example
let's say we have three classes; .one{} .two{} .three{}.
this is valid


<div id="main" class="one two three"></div>


note that this is invalid


<div id="main" class="one" class="two" class="three"></div>

just like the id you can only declare one class section but you can have multiple classes defined in that section (idk what the "proper" terminology for it is... class attribute? parameter? etc)
As with Teed though kinda unclear what you are driving at



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum