User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 422,412 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,041 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 779 | Replies: 3 | Solved
Reply
Join Date: Feb 2008
Location: Houston, TX area
Posts: 11
Reputation: Loopster is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Loopster's Avatar
Loopster Loopster is offline Offline
Newbie Poster

Can't get text to float around image

  #1  
Jun 8th, 2008
Hello,
I'm for some reason having trouble. This is simple stuff, but it isn't working!@

I'm just trying to get text to float around an image. I am not using DIV, but that shouldn't be necessary. Any ideas? I'm ashamed! This should be so simple! The problem is showing at: www.gbizbuilders.com

Here's the index.html code:
<p>
<img class="floatLeft" src="/picts/search-engine-marketing.png" alt="SEM">Search Engine Marketing:  Our firm will manage your online Pay Per Click campaigns.  We will run PPC campaigns to help you:
These services are designed to:
     <ul>
        <li><strong>Increase Sales</li></strong>
        <li><strong>Bring targeted traffic to your site</li></strong>
        <li><strong>Capture leads from your site</li></strong>
     </ul>
</p>

Here's the common-style.css code:
.floatLeft 
{ 
float: left; 
margin: 4px; 
}
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Location: Houston, TX area
Posts: 11
Reputation: Loopster is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Loopster's Avatar
Loopster Loopster is offline Offline
Newbie Poster

Re: Can't get text to float around image

  #2  
Jun 8th, 2008
I figured it out. But not by using the CSS, I put what I needed in the HTML.
Reply With Quote  
Join Date: Jan 2007
Posts: 2,556
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 114
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: Can't get text to float around image

  #3  
Jun 10th, 2008
You have an improper nesting. The ul tag pair can't be inside a p tag pair. It kept the p tag pair from wrapping around the image.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: Feb 2008
Location: Houston, TX area
Posts: 11
Reputation: Loopster is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
Loopster's Avatar
Loopster Loopster is offline Offline
Newbie Poster

Re: Can't get text to float around image

  #4  
Jun 11th, 2008
Thanks MidiMagic,
That would be the problem, I've made the change.
Loopster
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 9:26 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC