Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Float Problem- New to HTML
Old 10-14-2008, 03:37 PM Float Problem- New to HTML
Junior Talker

Posts: 4
Name: Marcio
Trades: 0
I'm basically teaching myself HTML and CSS but unfortunately I'm stuck with a problem, I'm sure it's silly but the book doesn't talk to me!

I was learning how to add an image using style="float:left" which adds text to the right side of the picture. Then I was using vertical-align (style="border-style:none; margin:2px; vertical-align:"text-bottom) as well.

The problem I'm having is that for some reason I'm stuck with the first float image so everything after stays on the right side of the picture. I thought after the <p></p> tags they would go to another line. Any suggestion?




HTML Code:
<body>
<p><h1 style="text-align:center">Slash</h1></p>
<p style="font-style:italic">
<img src="slash.jpg" alt="" style="float:left" width="200" height="200"/>
Slash line 1<br />
Slash line 2<br />
Slash line 3
</p>
 
<p>
<img src="slash.jpg" alt="Slash" title="Slash" width="200" height="200" style="border-style:none; margin:2px; vertical-align:"text-bottom" />
Slash line 1
</p>
 
</body>

Last edited by marciobrz; 10-14-2008 at 03:50 PM..
marciobrz is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-14-2008, 04:59 PM Re: Float Problem- New to HTML
serandfae's Avatar
Do the "Evil Nanner" !!!

Posts: 9,007
Name: Tim Daily
Location: Apex, NC, US, Sol 3
Trades: 0
Floats have to be cleared after the end of what you want to go to the side of them. I use <div style="clear:both;"></div>; LadynRed prefers to use a br with a class that includes a clear:both; and zeroing out of line height. Either works.

tim
__________________
SEO "experts" smell like Big Fish_|_
Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

serandfae is offline
Reply With Quote
View Public Profile Visit serandfae's homepage!
 
Old 10-14-2008, 07:58 PM Re: Float Problem- New to HTML
Junior Talker

Posts: 4
Name: Marcio
Trades: 0
Thank you so much serandfae! Great help! The book teaches how to create float but never mentioned anything about clearing them.

Last edited by marciobrz; 10-14-2008 at 08:00 PM..
marciobrz is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Float Problem- New to HTML
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.77929 seconds with 12 queries