![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Any tips on doing something like this? |
#2
| |||
| |||
|
|
Positioning is for block elements |
#3
| |||
| |||
|
|
MrBaseball34 wrote: Any tips on doing something like this? Don't use <span>. Positioning is for block elements, and unless you use display:block;, a span is an inline element. |
#4
| |||
| |||
|
|
MrBaseball34 wrote: Any tips on doing something like this? Don't use <span>. Positioning is for block elements, and unless you use display:block;, a span is an inline element. |
#5
| |||
| |||
|
|
On Tue, 19 Oct 2004 08:16:44 +0100, Mark Tranchant mark (AT) tranchant (DOT) plus.com> wrote: MrBaseball34 wrote: Any tips on doing something like this? Don't use <span>. Positioning is for block elements, and unless you use display:block;, a span is an inline element. Well, more accurately, large-scale positioning is 'easier' with block. Mr Baseball should use div here, not span. |
#6
| |||
| |||
|
|
Mr Baseball should use div here, not span. How 'bout an example as I haven't been able to get div to work either. |
#7
| |||
| |||
|
#8
| |||
| |||
|
#9
| ||||||||
| ||||||||
|
|
It is the line-height property that makes it work. Maybe. Unless someone uses bigger than 53px font. Not impossible... |
|
span style= |
|
"text-align: center; |
|
border:thin inset; |
|
height:53px; width:185px; |
|
background-color:#F9DFB2;" |
|
span style="font-family:'MS Sans Serif'; |
|
font-size:8px; |
#10
| |||
| |||
|
|
in comp.infosystems.www.authoring.stylesheets, Mr.Clean wrote: It is the line-height property that makes it work. Maybe. Unless someone uses bigger than 53px font. Not impossible... If possible, use em unit. span style= inline styles are not good idea. "text-align: center; Does nothing, as it only aplies to block elements. border:thin inset; I really think it is ugly to have bordered multiline span, so hopefully you don't have much text in it. height:53px; width:185px; Neither should do anything, and don't on modern browsers or IE6 in standards mode. Why aren't you using div instead of span. background-color:#F9DFB2;" You forgot to use color with your background color. span style="font-family:'MS Sans Serif'; That is bitmap font, at least in my systems. So user might get ugly font if he overrides your size, which he most likely do. font-size:8px; Too small and using px unit is bad when setting font. In my version of MS Sans Serif, there is no 8px version, I think that yours haven't have that either - so you are actually seeing 8pt version which size 11px. (easily tested, remove font-family rule) If users font is true type or similar (very likely if he don't have MS Sans Serif, which is about 99% certain if he is not using MS OS), he don't get 8pt font like you, but he will get 8px font, and that is not readable on any resolution, unless special fonts are used. |
![]() |
| Thread Tools | |
| Display Modes | |
| |