logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > HTML and CSS
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 01-02-2010, 02:01 AM   #1
Blue_Vision
 
Join Date: Jan 2009
Posts: 110
Default img float beside H tags

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 is offline   Reply With Quote
Old 01-02-2010, 02:11 AM   #2
Blue_Vision
 
Join Date: Jan 2009
Posts: 110
Default

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...
Blue_Vision is offline   Reply With Quote
Old 01-02-2010, 01:37 PM   #3
sitewidecf
 
Join Date: Dec 2009
Posts: 16
Default

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.
sitewidecf is offline   Reply With Quote
Old 01-02-2010, 03:43 PM   #4
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

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)
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com