|
|
 |
RE: FN-FORUM: CSS Madness - split topic here
date posted 29th February 2008 17:40
Tony,
I find that padding can be useful and my approach is to subtract any =
width padding from the specified width
ie before padding
.myDiv{
width:200px;
}
with padding
.myDiv{
width:170px;/*200 _ I keep this here for reference*/
padding-left:10px;
padding-right:20px;
}
just another option for those picking this up!
Kind regards=20
Brendan Oliver
M:+44(0)7701 054 588
T: +44 (0)1949 21202
E: [EMAIL REMOVED]
E: [EMAIL REMOVED]
14 Main Street
East Bridgford
Nottingham
United Kingdom
Internet E-mail Confidentiality: This E-Mail may contain confidential =
and/or privileged information. It is only intended for the use of the =
addressee indicated in this message. If you are not an intended =
addressee of this email (or responsible for delivery of the message to =
such person), the disclosure, copying or delivering of the contents of =
this email to anyone else is strictly prohibited and may be unlawful. If =
you receive this e-mail by mistake destroy the message and please notify =
us immediately by e-mail. Please advise immediately if you or your =
employer do not consent to Internet E-Mail for messages of this type. =
Information or opinions in this message that do not relate to this =
business shall be treated as neither given or endorsed by it. Please =
note that whilst we try to ensure that messages and attachments are =
virus free, we cannot accept responsibility for situations where this is =
not the case.
=20
-----Original Message-----
From: [EMAIL REMOVED] [EMAIL REMOVED] Behalf Of Tony
Crockford
Sent: 29 February 2008 15:53
To: Brendan Oliver
Subject: Re: FN-FORUM: CSS Madness - split topic here
On 29 Feb 2008, at 15:43, Brendan Oliver wrote:
>
> as Tony mentioned lots of css problems come from your friend and =20
> mine IE - whos a bit of a rule breaker.
>
> Most of these problems can be solved by understanding the box model =20
> - http://www.brainjar.com/css/positioning/default.asp and how IE =20
> treats padding and margin values
The simple trick that I learned long ago, that saved me from loads of =20
grief, was to avoid horizontal padding altogether.
if you need white space add a margin to the contained element, not =20
padding to the container.
that one simple thing eliminates a whole mess of IE problems.
;o)
--=20
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|