You are here: Re: Solid line - need to start 15px in « HTML « IT news, forums, messages
Re: Solid line - need to start 15px in

Posted by tshad on 09/27/23 11:16

"Mark Parnell" <webmaster@clarkecomputers.com.au> wrote in message
news:ngoqh2l68i1v.i2hxfpdwsj9y.mark@markparnell.com.au...
> Previously in alt.html, tshad <tscheiderich@ftsolutions.com> said:
>
>> It also shows the where the extra space is coming from. Apparently,
>> Mozilla is putting space between the paragraph border and the cell
>> border.
>> IE doesn't.
>
> Mozilla has a default margin-top and margin-bottom of 1em on paragraphs.
> Apparently IE doesn't (at least, not in table cells).
>
> Because different browsers have different defaults for margin and
> padding (none are wrong, they are just different), I generally recommend
> setting all margins and padding to 0: * {margin: 0; padding: 0;} - then
> set it on individual elements as required.

I tried it. I put it on the <table>, the <td> and the <p> and it still has
the extra space around the words in Mozilla - as you can see in the example.

<table width="200" style="padding:0;margins:0;" border="1" cellspacing="0"
cellpadding="0">
<tr>
<td style=" padding:0;margins:0;width:100px;border-right-width: 1px;
border-top-width:5px; border-bottom-width: 1px; border-top-style:solid; ">
<p style="padding:0;margins:0;margin-left:15px;
border-top-style:solid;border-top-width:5px;
border-bottom-style:solid;border-bottom-width:5px">test line

Tom
>
> --
> Mark Parnell
> http://www.clarkecomputers.com.au
> alt.html FAQ :: http://html-faq.com/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация