Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

   

Reply
 
LinkBack Thread Tools Display Modes
Old 09-12-2004, 06:49 AM   #1 (permalink)
Inactive
 
Join Date: 03-09-04
Posts: 20
iTrader: 0 / 0%
Latest Blog:
None

spl1nter is liked by many
Help with floating...

On my site http://www.gamehideout.co.uk/ I am trying to get the image in the same box as "Testing, testing." while being on the right-hand side of the box (where it currently is).

Code:
<div class="context"> <img src='thumb_gen.php?forum.jpg' alt='The new look forum.' /> Testing, testing. </div>
Code:
#content .top .context img { border: 1px #CCCCCC dashed; padding: 1px; float: right; }
What's up and how do I fix it?
spl1nter is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-12-2004, 08:20 AM   #2 (permalink)
No Longer Here
 
Join Date: 09-27-03
Location: State College, PA
Posts: 9,354
iTrader: 0 / 0%
Latest Blog:
None

Jazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebodyJazzee is liked by somebody
Looks like you figured this out?
Jazzee is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-12-2004, 09:16 AM   #3 (permalink)
Inactive
 
Join Date: 03-09-04
Posts: 20
iTrader: 0 / 0%
Latest Blog:
None

spl1nter is liked by many
I sort of solved it:

Code:
<div class="top"> <div class="header">latest update - 12/09/04</div> <div class="context"> <p>This site is very incomplete but all the links work so you can take a look around. Not much content yet though. Make sure to check out the forum as it has become very popular!</p> <a href='image/forum.jpg'><img src='thumb_gen.php?forum.jpg' alt='The new look forum.' /></a> </div> </div>
Code:
#content .top .context { border: 1px #CCCCCC dashed; border-top: 0px; padding: 3px; text-align:right; } #content .top .context img { border: 1px #CCCCCC dashed; padding: 1px; margin: 3px; } #content .top .context p { text-align: left; float: left; margin: 0px; }
Unfortunately the text goes above the image now. The top of the image is meant to be on the same line as the 1st line of text.
spl1nter is offline  
Add Post to del.icio.us
Reply With Quote
Old 09-12-2004, 11:07 AM   #4 (permalink)
Inactive
 
Join Date: 03-09-04
Posts: 20
iTrader: 0 / 0%
Latest Blog:
None

spl1nter is liked by many
I figured it out. I'm not going to be able to tell you exactly how I did it as I made lots of little changes and I've forgotten how much different the code is.

I'll provide the two pieces of code now though for you to analyse. The main bit was to have the image tag before the text.

Code:
<div class="context"> <p><a href='image/forum.jpg'><img src='thumb_gen.php?forum.jpg' alt='The new look forum.' /></a> This site is very incomplete but all the links work so you can take a look around. Not much content yet though. Make sure to check out the forum as it has become very popular!</p> </div>
Code:
#content .top .context { border: 1px #CCCCCC dashed; border-top: 0px; padding: 3px; float: left; margin-bottom: 5px; } #content .top .context img { border: 1px #CCCCCC dashed; padding: 1px; margin: 3px; float: right; } #content .top .context p { margin: 0px; }
spl1nter is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Floating Table OhCaN Coding Forum 13 08-24-2007 01:42 PM
Floating divs breaks in FF, not other browsers iamPariah Coding Forum 0 07-30-2007 05:23 PM
Floating Image sixty6 Coding Forum 4 06-29-2006 02:05 AM
Javascript for a floating star tuzaj Web Design Lobby 3 06-30-2005 04:17 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:11 AM.
© Copyright 2008 V7 Inc