Float an image to the left of text CENTERED

Hi,

I wish to be able to pull data from a database (for example, title, date, summary and image) and be able to display them in a block format with the image floated on the left in the CENTER of the text (2 columns, image on left, text on right).

I have done this so far by doing:

HTML Code:

#services li {
                margin: 0;
                padding: 0;
                background: url('img/services/run.jpg') no-repeat 0 50%;
        }

                li#service-two { background-image: url('img/services/sm.jpg'); }
                li#service-three { background-image: url('img/services/online_training.gif'); }
                li#service-four { background-image: url('img/services/apple.jpg'); }
                li#service-five { background-image: url('img/services/portal.jpg'); }


However, this is changing the image using CSS. I wish to change the image using a database (ie, the value will change!)

How can I do this please?

To view a live example; see right hand column @ www.activityx.co.uk

Thanks.

View full post on Tycoon Talk

, , , ,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Get Adobe Flash playerPlugin by wpburn.com wordpress themes


RSS Site FeedRSS Site Feed

© 1992-2011 DC2NET™, Inc. All Rights Reserved