Help with floating...

NamecheapNamecheap
Watch

spl1nter

Established Member
Impact
0
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?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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;
}
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back