| | |
Keeping it in the box
Please support our HTML and CSS advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Dec 2007
Posts: 54
Reputation:
Solved Threads: 1
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:
WBR
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:
HTML and CSS Syntax (Toggle Plain Text)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled Document</title> <style type="text/css"> /* Branding Text */ .branding{ font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif; font-style: italic; font-size: 30pt; color: red; font-weight: bold; text-decoration: none; text-align: left; } body { background-color: #000000; } #wrapper { margin: 0 auto; margin-top: 2px; padding: 0px; width: 800px; min-height: 800px; background-color: #000000; } #branding { padding: 0; width: 800px; height: 60px; clear: both; background-color: #CCCCCC; border: inset; } </style> </head> <body> <div id='wrapper'> <div id='branding'> <p class='branding'>William Bradley Rouse</p> </div> </div> </body> </html>
•
•
Join Date: Dec 2007
Posts: 54
Reputation:
Solved Threads: 1
This seems to work for the first part of my question. Is this the way to do it?
HTML and CSS Syntax (Toggle Plain Text)
<div id='branding'> <span class='branding'>William Bradley </span> <span class='branding_non_i'> Rouse </span> </div>
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.
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.
Daylight-saving time uses more gasoline
![]() |
Similar Threads
- drop down quantity box to update price (JavaScript / DHTML / AJAX)
- Content Changes across pages via Drop-Down Box (ASP.NET)
- Hint Box in ajax (JavaScript / DHTML / AJAX)
- keeping the data (HTML and CSS)
- Help...symantec keeping sending email (Viruses, Spyware and other Nasties)
- Trying to detect what Box I'm in in Dots and Boxes (Java)
- HiJackThis-log for viewing , XP box. (Viruses, Spyware and other Nasties)
- Keeping a Java App. Open but Closing One of the Windows (Java)
Other Threads in the HTML and CSS Forum
- Previous Thread: Google Adsense!
- Next Thread: Dreamweaver CS3 Spry
| Thread Tools | Search this Thread |
appointments asp background backgroundcolor beta browser bug calendar cart cgi code codeinjection corporateidentity css design development displayimageinsteadofflash dreamweaver emailmarketing epilepsy explorer firefox flash form format google griefers hackers hitcounter hover html ide ie7 ie8 iframe image images internet internetexplorer intranet iphone javascript jpeg layout macbook maps marketshare microsoft mozilla multimedia navigationbars news offshoreoutsourcingcompany opacity opera optimization pnginie6 positioning problem scroll seo shopping studio swf swf. textcolor timecolor titletags url urlseparatedwords visual visualization web webdevelopment webform website windows7






