height

creating a menu with CSS and overflow: auto

The main structure of the page is like this: <html> <body> <div id="Menu"> <h1>Menu</h1> <ul id="MenuList><!-- some LI elements --></ul> <h1>Submenu 1</h1> <ul id="Submenu1List"><!-- many LI elements --></ul> <h1>Submenu 2</h1> <ul id="Submenu2List"><!--...

div height problem in ie6

i'm using a empty div to display a line by setting height 3px. it works fine in all browsers but in ie6 the height div displayed with 20px height. It remains same even for height:0px . But changes in other properties reflects but not height and there is no duplicate css entry and inherited value from other div. Can any one help please <...

CSS: navigation bar to expand to the whole page height

Hello guys, Im not too great at CSS but hopefully someone on here can help. I have the following mockup. (i have stripped out my content to make it easy to view) <body> <div id="container"> <div id="header"></div> <div id="body"> <div id="navBar"></div> <div id="mainContent"></div> </div> <d...

Cross browser height function - jquery

Hi guys I have a series of table cells that I am trying to set the height of. It all seems to work well but unfortunately Firefox adds on the borders to the overall height where as the other browsers seem not to. Hence I was wondering if anyone knows of a jquery function/plugin that will set the height consistently between browsers r...

Using a variable for div height?

In the script part of the page, I have a function that figures out the screen height and assigns it to a variable - myHeight (it's really screen height * .90). In the body of the page, I have a div with some properties, one being height. height:90% isn't working in IE8, so that's why I'm using that function to calculate screen height i...

(iphone) when or how to get the uiview height size after layoutSubviews

in my viewcontroller I make my instance of my view class ( in the viewdidload method) in that view class I implement the layoutsubviews method and add all kinds of subviews there now since that view class is part of a uiscrollview i want to make the scrollview contentsize as large as the view class how do i get the height of my viewcla...

Setting the height of a SELECT in FIREFOX 2

Hi, I have a weird problem with HTML select box height in Firefox 2, here's the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>FIREFOX 2 SELECT BOX HEIGHT ISSUE</titl...

iPhone: UINavigationBar with buttons - adjust the height

Hi developers, I am working on an iPhone application which works in both orientations: portrait and landscape. I am using for one view and tableview embedded in an UINavigationController. The height of this navigationbar with its buttons is either: 44px portrait or 34px landscape. Within a different view I created the UINavigationBar...

Changing heights of container divs using percentages in CSS to reflect contents

I have the following code that mimics my problem. I want to style the elements within the "Container" div using percentages. Therefore I have to set the "Container" div to height 100% (or other value) to make this work. The problem arises when I want the "Container" div to change height to reflect contents. In the case below I'd want the...

Percentage Height HTML 5/CSS

I am trying to set a div to a certain percentage height in CSS, but it just remains the same size as the content. When I remove the doctype element at the top of the page, however, it works. I want the page to validate, so what should I do? The code is as follows: #page { padding: 10px; background-color: white; height: 90% !importan...

CSS Parent-Child height

hi, I have some problem with these code snippets: CSS: #wrapper{ width: 600px; background: gray; } #left{ float: left; width: 150px; height: 80px; background: red; } #right{ float: left; width: 450px; height: 150px; background: yellow; } HTML: <div id="wrapper"> <div id="left"></div> ...

iPhone + UITableView + row height problem

Hi, I am setting the row height of my UITableView using following code [tableView setRowHeight: 100.00]; I am using the single line as separator in the UITableView. Eventhough setting the height above, height of row does not get change. Please help me ...

How to set 50% height for table cells for WebKit (Chrome, Safari)

Look at this code: <html> <body> <table border="1px"> <tr> <th align="center" width="70px">Name</th> <th align="center" width="70px">State</th> <th align="center" width="70px">Enabled</th> <th colspan="2">Date &amp; Time</th> <th>Message</th> </tr> <tr> <td rowspan="2"> <spa...

How to automatically add <img> height and width in Visual Studio?

When I drop an html image onto my page (vs2005) the height and width attributes are not specified. Do I really have to edit the html by hand to add these? Or is there an automatic method? ...

Canvas height auto? - Adobe Flex (actionscript)

Hey I would like to have that the height of a canvas change automatically. When there are a lot of labels and images in my canvas, the height must increase. And when there are just a few labels in the canvas, the height must decrease. In fact i want something like in CSS: height: auto; I hope youn understand my question. Thanks in ad...

listen browser width / height changes with jquery

Hi, I have some divs that are set with position absolute (CSS) when the page is ready, and are positioned relative to another fixed div, wich works fine. However, before the page is loaded and everything is set, if the page is resized, those absolute divs don't follow the changes, moving to other places, wich I think they are given valu...

setting height of DIV with CSS in relative positioning

I have some HTML+CSS code that wants to layout several DIVs. The layout is like this: all DIVs stay in a parent DIV whose size is fixed. Then each child DIV should stay on its own line, and use the minimum height for drawing its content. The last DIV should consume all remaining height, so that the parent DIV is entirely filled. This co...

sifr menu list problems, height of object calculated wrong

I am using Drupal and have sifr set on list items, and also a, a:hover are set via Drupal so that the links hover. I looked at the sifr3-rules.js file drupal's render module creates and it looks good. and in fact my other sifr items look fine... But the list item ones are goofing for some reason... There is extra space below the list, so...

Adjust Width & Height of a Control (ASP.NET)

Hi, I am just starting to study ASP.NET from my WPF Knowledge. I think the UI designing is very difficult in ASP.NET compared to WPF XAML design. I have a problem in my UI layout. In WPF we use Width=" * " and Height=" * " to adjust height and width of the controls like listview, listbox so that the application can run in any resolut...

How can you get the height of an swf to expand with the content?

I am creating a site in flash that is reading in entries from a database. I want the swf to expand downward on the html page so the user can use the browser scroll bars to see all the content. I don't want to paginate everything into a 800 px high swf or something - I want the page to expand just like it would if it were html. Possible? ...