Reply to Re: Newbie question re CSS margins in IE

Your name:

Reply:


Posted by Damien Sawyer on 03/12/06 01:45

Well Neredbojias, I sincerely appologise for annoying you.

If anyone is interested (and for the sake of permanance), one workaround is
to include an empty table inside the div, set it's width to 100% and it's
border to 0.

IE really does suck.

Cheers



DS


<html>
<head>
<style>
body
{
font-family:Verdana;
Font-Size:0.8em;
}

..myDiv
{
border-width:1px;
border-style:solid;
border-color: black;
position:absolute;
left:100px;
right:10px;
top: 50px;
height:500px;
background-color:palegreen;
}
</style>

</head>
<body>
<p>I want the div to position accordng to the left and right settings
in the style. It works
fine for Firefox, however, in IE only works when there is more than
"one lines" worth
of text in there. I need it to fill the screen when there is no text.
</p>
<p>Any ideas?</p>
<div class="myDiv">
<p>Sample text inside div</p>
<table cols=1 width=100% border=0>
<tr></tr>
</table>
</div>

</body>
</html>
"Neredbojias" <invalid@neredbojias.com> wrote in message
news:MPG.1e7cd8cdeb654d79897fd@news.isp.com...
> With neither quill nor qualm, Damien Sawyer quothed:
>
>> um...duh.
>>
>> From my original post....
>>
>> "Can someone please point me in the direction of a workaround?"
>>
>> It's really annoying when people respond to newsgroups questions to which
>> they don't know the answer... :-(
>
> It's really annoying when people don't recognize the answers they
> sought. I showed you what was wrong, thus pointing you in the direction
> of a workaround.
>
>> Lets refer back to your original (annoying) statement,
>>
>> "Almost certainly, the solution to your real problem is simple"
>>
>> It wouldn't seem that it's that simple to you now, would it??
>
> Oh, but it is. Extremely simple. Much simpler than cutting and pasting
> markup which should have been examined from a url regardless of its
> historic impermanence. Unfortunately, you have annoyed me so maybe
> Jukka or Alan or David or Jonathan or somebody can come to your rescue
> because I'm through.
>
> --
> Neredbojias
> Contrary to popular belief, it is believable.

[Back to original 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

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