Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > HTML, XML, Javascript, AJAX
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 04-28-2008, 04:58 AM   #1 (permalink)
wolf99
Code Monkey
 
wolf99's Avatar
 
Join Date: Jan 2006
Location: in college (again) in rural Eire
Posts: 44
wolf99 is on a distinguished road
some trouble with CSS aligning text

Hi All

im not too experienced with CSS, and have a small prob

I have a floating div that holds a set of images. I want to use the CSS to place a little bit of info about each set of images beside the set then there is anther set further on like-wise.

eg.

DivA
image blahblah blah blah
image blah blahblah
image etc
image

DivB
image blahblah blah blah
image blah blahblah
image etc
image

Ive read so many different and sometimes contradictory methods I am thoroughly confused as to the correct way to do this

thanks for any help
__________________
wolf99 is offline   Reply With Quote
Old 05-01-2008, 09:12 PM   #2 (permalink)
teknomage1
Jack of all trades
 
teknomage1's Avatar
 
Join Date: Feb 2005
Location: Los Angeles
Posts: 595
teknomage1 is on a distinguished road
Send a message via AIM to teknomage1
I like to use nested lists for this sort of thing.
So you have an unorderd list of unordered lists that each contain an image a desciption and whatever else you want. You can set up the inner list class to render horizontally.

Of course, the more cynical might state that that's a table and you could just make each div contain a table and use the CSS for style not layout (since the data itself is semantically tabular, it shouldn't set off the anti-table nazis).
__________________
Stop intellectual property from infringing on me
teknomage1 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CSS changing default text in BODY tag DavH27 HTML, XML, Javascript, AJAX 3 11-02-2006 08:57 AM
Include file shown correctly in FF not in IE Stoner HTML, XML, Javascript, AJAX 2 04-21-2006 07:56 AM
Text Searching freesoft_2000 Java 2 12-02-2004 07:38 AM
CSS Explorer trouble (of course) easilyi HTML, XML, Javascript, AJAX 6 11-11-2004 03:59 PM
An Introduction to XHTML/CSS Rie HTML / CSS 0 03-07-2003 06:50 PM


All times are GMT -8. The time now is 12:11 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle