Previous Message
Next Message

Class for a Nested unordered list

Sent by Roger Roelofs on 13 February 2005 00:12


Robert,

On Feb 12, 2005, at 5:33 PM, Robert Neville wrote:

>> You should validate your HTML as well. Offhand, I
>> saw:
>> 	&nbsp
>> instead of
>> 	 
>>
>> -- 
>> John Lewis
>> Thanks John,
>
> The validation did not return those errors for me. But
> then again after making many adjustments to the page;
> not having access to the internet during my coding;
> you forget what parts validated and which parts
> returned errors. Unfortunately, the WC3 validator kept
> returning the following error and nothing else.
>
> No Character Encoding Found! Falling back to UTF-8
>
> The meaning of the error still has me perplexed.
>
Every document has a character encoding.  ascii, utf-8, or other.  This 
can be set by your web server, but in most cases you have to use the 
http-equiv meta tag to describe which character set you are using.  
Here's what goes just after the <head> tag on most of my pages...

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" 
/>

> Several questions still persist regarding the original
> post. How do I vertically center the text on the image
> without resorting to tables or a fixed margin/padding
> (the image size could change)? Could adjusting the
> line height help

The image pushes the line box down, so setting the line-height doesn't 
seem to help at first.  for your current content,  adding line-height: 
1.6; (or line-height: 30px;) to .ToolBar  You will also want to add

..ToolBar img {
	vertical-align: bottom;
}

to keep the image 'stuck' to the bottom of the line.

If the image size gets taller, you may have to tweak the line-height to 
match.

If you don't want to work with line-height, you could try this instead. 
  The down side is that you still have to tweak based on image height.

..ToolBar strong {
	position: relative;
	top: -.5em
}


Roger,

Roger Roelofs
Know what you value.

______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread:

Possibly related: