Previous Message
Next Message

Site Check (be kind...)

Sent by Matthias Kestenholz on 19 February 2005 16:04


Hi

On Sat, 2005-02-19 at 16:53 +0100, [EMAIL-REMOVED] wrote:

>Hi list,
>
>My css-file starts with: * {margin: 0; padding: 0; }.
>
>In my page I've an image with this tag:
><img width="186" vspace="10" hspace="10" height="282" border="1" alt="xxx"
>title="xxx" area="52452" src="pics/xxx.png" style="float: left;" />
>
>BUT . . . 
>The page has no space between the image-border and the text.
>If I remove the line in the css-file this works fine, but all my other
>lay-out is messed-up. 
>
>It looks like the inline styles vspace and hspace don't overrule the
>settings in the css-file.
>
>Who knows a solution (s direction)?


Try not mixing new (CSS margin,padding) and old (vspace,hspace) style
directives.
You could f.e. add "margin: 10px;" to the inline style definition as
follows:

<img ... style="float:left; margin:10px" />


hth, Matthias
______________________________________________________________________
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: