Jump to content

[SOLVED] Using CSS to display list of members


Mardoxx

Recommended Posts

				<div id="mainContent">
				<h3><span>Members</span></h3>
				<div id="members">
					<div id="memberOdd">
						<div id="pic"><img src="" /></div>
						<div id="text"><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p></div>
					</div>

					<div id="memberEven">
						<div id="pic"><img src="" /></div>
						<div id="text"><p>Ut mauris mauris, ultrices eget vestibulum quis, euismod eget lacus.</p></div>
					</div>
				</div>

			</div>

 

 

I want it to display

 

image text

text image

image text

text image

 

It would be easy with tables, but how would I go about it using CSS? (which is a lot neater :P)

 

can anyone help me please?

 

<div class="even">
  <img />
  <p>text</p>
</div>

<div class="odd">
  <img />
  <p>text</p>
</div>

<div class="even">
  <img />
  <p>text</p>
</div>

<div class="odd".
  <img />
  <p>text</p>
</div>

 

.even img
{
  float:left;
}

.odd img
{
  float:right;
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.