navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

height attribute?

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Cascading Style Sheets >> height attribute?
Page: [1]
 
DaveX

 

Posts: 217
Joined: 5/4/2004
Status: offline

 
height attribute? - 9/28/2008 18:26:42   
I've been working on a page where I've created a container with a set height and width. Here's the CSS:

#client {width: 550px; height: 489px; font-size: 20px; margin-left: auto; margin-right: auto;}

It looks and works great except in Safari which ignores the height completely. am I doing this wrong? I've read some things suggesting height is not an actual attribute and should never be used (mostly in Mac/Safari-friendly forums). If this is right, how do you control the height?
Tailslide

 

Posts: 6294
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: height attribute? - 9/29/2008 2:22:50   
Can we have a link to see it in context? Might be something else going on as can't think of a reason Safari would ignore height. It used to not support min-height but does now.

Personally I tend not to use height unless it's for something that can't increase in height like an image. Trouble with height is that if the user increases the text size in their browser it can break in modern browsers.

What I tend to do for divs that have scalable content and that can't just be the height of their content is to use a mix of min-height for modern browsers (so that the div can expand but will be a minimum height of x) and then in an IE stylesheet I'll use height as IE treats height as min-height anyway!

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to DaveX)
Page:   [1]

All Forums >> Web Development >> Cascading Style Sheets >> height attribute?
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts