Re: limiting width of div (or other container) to width of text
by Gerhard Schoening <g.sch(at)onlinehome.de>
|
Date: |
Thu, 23 Jan 2003 15:39:24 +0100 |
To: |
"Ann Ezzell" <amcbainezzell(at)alum.mit.edu> |
Cc: |
hwg-style(at)hwg.org |
References: |
STARRYKNIGHT |
|
todo: View
Thread,
Original
|
|
Hi Ann,
On Thursday, January 23, 2003 at 15:05 you wrote:
> Already tried that - it doesn't work either.
Hmmm - so the reason must be something else...
Did you already
- validate your (X)HTML?
http://validator.w3.org/ (online pages) or
http://validator.w3.org/file-upload.html (local pages)
- validate your CSS?
http://jigsaw.w3.org/css-validator/validator.html or
http://jigsaw.w3.org/css-validator/validator-upload.html
Do you use HTML or XHTML?
For XHTML, it *might* be important to have
#headerBoxTraining h1 {...} (lower case) instead of
#headerBoxTraining H1 {...} .
Not sure because I always use XHTML and CSS *all* lower
case, like so:
<div id="header-box-training"><h1>Header 1</h1></div>
#header-box-training h1 {...} , etc.
If all the above fails: do you have some URL to look at your
codes?
Regards,
Gerhard
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
Gerhard Schoening, Web Freelancer
Development of Bilingual Accessible Websites
http://www.schoening-online.com
Community & Portal Websites in PHP & MySQL
http://www.cp-web.com
HWG hwg-style mailing list archives,
maintained by Webmasters @ IWA