Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 10:28 PM
bengee
Guest
 
Posts: n/a
Default Page header with 2 img's (left and right aligned)

Hi

I'm trying to get a <div> displaying at the top of my page containing 2
img's: 1 left aligned and 1 right aligned. I can't get this to work, and
it's driving me up the wall!! Here's the HTML :-

--
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/DTD/strict.dtd">
<html>
<body style="margin: 0; border: 0; padding: 0;">
<div style="margin: 0; border: 0; padding: 0; background:
url(image2.gif) repeat-x;">
<img src="image1.gif" style="float: left;">
<img src="image3.gif" style="float: right;">
</div>

<div class="body" style="float: both;">
some text here...
</div>
</body>
</html>
--

Because i'm using 'float', the "some text here" is appearing at the very
top of the page. All i want is a <div> with 2 images!!

Please help.

Ben
  #2  
Old July 20th, 2005, 10:28 PM
Neal
Guest
 
Posts: n/a
Default Re: Page header with 2 img's (left and right aligned)

On Mon, 26 Jan 2004 22:20:23 +0000, bengee
<postmaster@localhost.localdomain> wrote:

[color=blue]
> <div class="body" style="float: both;">[/color]

clear: both, not float: both.
  #3  
Old July 20th, 2005, 10:28 PM
bengee
Guest
 
Posts: n/a
Default Re: Page header with 2 img's (left and right aligned)

Neal wrote:[color=blue][color=green]
>> <div class="body" style="float: both;">[/color]
>
>
> clear: both, not float: both.[/color]

Thanks Neal!

bengee
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles