You are here: Re: css- 2 boxes, one=200px, second=(100%-200px)- how? « HTML « IT news, forums, messages
Re: css- 2 boxes, one=200px, second=(100%-200px)- how?

Posted by <talthen.z-serwera.o2 on 01/12/83 11:28

"Neredbojias" <neredbojias@neredbojias.com>
>> one with width=200px and second's width=(100%-200px). Such thing can be
>> easily done using frames and tables, so it must be possible using CSS
>> too!
>> Why do I need it? Because I have a page with menu on the left (it's the
>> first box) and a box with text on the right (it should have
>> width=100%-200px
>> to look good).
>
> Have an outer div with padding-left:200px; and absolutely-position the
> 200 px inner div margin-left:-200px; inside it.

Well... it still doesn't work as desired:

=====
<html>
<head>
<style>
div.menu {position: absolute; margin-left: -170px; top: 0px; width: 130px;
font-size: 13px;
text-align: left; height: 100%;}
div.text {top: 0px; left: 0px; padding-left: 170px; height: 100%;
background-color: red; width: 100%;
float: left;}
</style>
</head>
<body>
<div class="text">
slowo
<div class="menu">
menu
</div>
</div>
</body>
</html>
===

I have validated it with http://jigsaw.w3.org/css-validator/ and it shows
that my code is correct.
However only MSIE and Opera shows it correctly, and Mozillas suck ;/
A tried many combinations of paddings and margins and I am a bit bored.
How can I make it work in Mozillas?

Regards,
Talthen

 

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

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