On Wed, 11 May 2005 11:31:42 +0200, Wilhelm Kutting <wk******@arcor.de>
wrote:
when i use the padding-left attribut, i like to overwrite a default
value like that
.padding30 {margin-left: 30px;}
.padding0 {margin-left: 0px;}
Where is the padding-left attribute? All I see is margins.
<div class="padding30">
Padding 30
<div id="padding0">
<p>Padding 0 </p>
</div>
</div>
Can i get this working?
What is it you are trying to achieve? You don't do anything with the
padding of those paragraphs. You just play around with the margins.
<http://www.w3.org/TR/REC-CSS2/box.html#propdef-padding-left> for padding
<http://www.w3.org/TR/REC-CSS2/box.html#propdef-margin-left>
BTW: don't name classes after the effect you're trying to achieve. Name
them more semantically. What if the paragraph with class .padding0, needs
a padding of 3em in a future design?
Also: avoid fixed sizes and lengths where possible. If you use a relative
sizing, your design easily adjusts to visitors explicite wishes for larger
or smaller font sizes or viewport dimensions.
--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog |
http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp |
http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen |
http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'