PDA

View Full Version : img float beside H tags


Blue_Vision
01-02-2010, 01:01 AM
Doing an "about" page.

Inside 1 container, I want to use an H tag on the left for a title with an floating img beside it to the right. When I do this, it puts the floating img below the heading instead of beside it.

Solution ideas?

Thanks!

Blue_Vision
01-02-2010, 01:11 AM
Ok, I put the H tags below the floated image and now it lines up adjacent to each-other. Not sure if this is proper or not but it lines up right until I hear back opinions I guess...

sitewidecf
01-02-2010, 12:37 PM
First I assume when you say H you mean h1?

There are alot of variations on how do accomplish what you want with CSS, floats and positioning. You can even use image replacement for the h1 and position the text within the image.

However, by not seeing your code it is hard to explain the best solution for your needs.

DWcourse
01-02-2010, 02:43 PM
A CSS float or an HTML align positions the image left or right (as specified) and then wrap the content that appears after the image around the image. So what you did (in your second post) was correct. (Hopefully you are using CSS positioning)