hey,
i have a question regarding the cascading of styles. I'd like to set a
default color on all DIV elements so I have the following:
div
{
color: blue;
}
in the of my document (in a
hey,
i have a question regarding the cascading of styles. I'd like to set a
default color on all DIV elements so I have the following:
div
{
color: blue;
}
in the of my document (in a
Hey,
I'm after a simple way to get the equivalent of
text thats 10px height
I'm aware that I can use the line-height CSS property center the line
object in the container, as so:
text thats 10px height
And that will successfully vertically align both the txt and image
within the DIV. H
> Hey,
>
> I've seen you fixed the problem som other way, but the real
> problem is applyign styles in a span. Spans are inline
> elements so applying padding acts on then in an unusual way,
> I've found. I think if you used a DIV, or else applied
> display: block; to the span you'd find it'
> Simon Kittle wrote:
> > line one
> > line two
> >
> > And within the content of my page this is being display as this:
> >
> > http://www.moseyondown.com/dev/css/20051226.line-height-problem.png
> >
> > Unfortunately I can'
:
http://www.moseyondown.com/dev/css/20051226.line-height-problem.png
Unfortunately I can't post the page's HTML as it's an unreleased website.
Do you know anything that might give the behavior? Other CSS attributes
that can affect spacing like that?
Kind regards,
Simon
--
IE and FF - I know it is my code. If I
set line-height: 1em; for example, in a blank HTML document then I get this
same effect. But I've done global searches on all my code, html, and css
and I've only got about 2 uses of line-height in the whole site.
Are there any other CSS attributes tha