Re: div
- From: "Evertjan." <exjxw.hannivoort@xxxxxxxxxxxx>
- Date: 07 May 2011 11:46:49 GMT
dorayme wrote on 07 mei 2011 in comp.infosystems.www.authoring.stylesheets:
In article
<ed650da2-db46-4e0a-998a-1139858131d3@xxxxxxxxxxxxxxxxxxxxxxxxxxx
m>,
cerr <ron.eggler@xxxxxxxxx> wrote:
I would like to have two divs besides each other.
.class {float: left;}
with
<div class="class">content</div>
<div class="class">content</div>
should do the trick. They get all cosy this way unless the second
one has not been given enough room for the viewport, either by
its partner or by interfering third party busybodies like
paddings, margins, borders, container widths - there is no end to
the obstacles to happy marriages.
<style type='text/css'>
..myClass {display: inline;border: green solid 1px;}
/* inline-block would be nicer, alas not for IE. */
</style>
<div class="myClass">content</div>
<div class="myClass">content</div>
<div class="myClass">content</div>
<div class="myClass">content</div>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.
- Follow-Ups:
- Re: div
- From: dorayme
- Re: div
- Prev by Date: Re: div
- Next by Date: Re: div
- Previous by thread: Re: div
- Next by thread: Re: div
- Index(es):
Relevant Pages
|