![]() |
| ||
| Keeping it in the box In this html file I created an area called “branding” where I wanted my name at least at first flush left in the middle of the branding area. The elements behave differently in IE Release candidate 1 than in Firefox. I assume Firefox is correct but how do I get both to behave like IE where the text is: 1) In the middle of the box. 2) Flush left top of box 3) Flush left bottom of the box. I would be thankful for you assistance. The code follows: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">WBR |
| ||
| Re: Keeping it in the box This seems to work for the first part of my question. Is this the way to do it? <div id='branding'> |
| ||
| Re: Keeping it in the box Stop using px for sizes, or it will behave totally different when the browser window or the screen resolution changes. Where the object appears in the box depends on how much margin you give it on each side, and what else is in the box. With some box objects (but not div), you can set the vertical-align attribute. |
| All times are GMT -4. The time now is 3:54 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC