[css-d] setting default styles for DIV but still having it cascade

2006-07-05 Thread Simon Kittle
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

[css-d] setting default styles for DIV but still having it cascade

2006-07-05 Thread Simon Kittle
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

[css-d] Vertically centering (again!) text and image relative to each (not just within container)

2006-01-19 Thread Simon Kittle
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

Re: [css-d] what could give similar effect to line-height?

2005-12-26 Thread Simon Kittle
> 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'

Re: [css-d] what could give similar effect to line-height?

2005-12-26 Thread Simon Kittle
> 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'

Re: [css-d] what could give similar effect to line-height?

2005-12-26 Thread Simon Kittle
: 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 --

[css-d] what could give similar effect to line-height?

2005-12-26 Thread Simon Kittle
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