![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||||
| |||||
|
|
Apologies if this is not the correct qroup in which to ask this question, but here goes..... On a page I had two words on one line of text that displayed as different sizes, thus: div id="heading" h1 align="left">WORDONE<font color="#000000"><em><font size="3">....WORDTWO</font></em></font></font></h1 /div and the css was: |
|
#heading { LEFT: 0px; POSITION: relative; TOP: 0px } #heading H1 { PADDING-RIGHT: 10px; BORDER-TOP: #006 2px solid; PADDING-LEFT: 10px; FONT-SIZE: 30px; BACKGROUND: #cc99ff; PADDING-BOTTOM: 5px; MARGIN: 25px 0px; COLOR: #000000; PADDING-TOP: 5px; BORDER-BOTTOM: #006 2px solid |
|
This would not validate under 4.01 strict due to the use of 'color' and 'size'. |
|
It's now tidied up and validates, but I can't figure a way to get the two words to display as different sizes without using the unsupported elements. |
|
Would creating a new new div [#heading2] and positioning that relative to #heading be the way to go? |
#2
| |||
| |||
|
|
On Tue, 17 Aug 2004 11:49:17 -0400, Neal <neal413 (AT) yahoo (DOT) com> wrote: If you're using CSS, why bother with the font element? Because I don't know what I'm doing! Still very much as the 'working through a css book' stage, and whilst bits in isolation make some sense, the whole picture is very fuzzy. |
![]() |
| Thread Tools | |
| Display Modes | |
| |