Log In · Register

 
 
Closed TopicStart new topic
Proper alignment?
Relentless
post Aug 5 2007, 04:43 PM
Post #1


sang loves hayden.
*******

Group: Staff Alumni
Posts: 3,373
Joined: Feb 2004
Member No: 5,687



Well, I'm having an issue with my image alignment.

I'm pretty sure the code to align an image is this..

<img src="URL" align=left/right> Right..?

Well, if you look in my CB profile, I put my image set to the right.. like so..
<img src="URL" align=right>

It's perfectly fine in FF. However in IE it's different. There's a huge gap for some reason. =/

I even tried <div align=right><img src="URL"> and it still doesn't look right in IE. But everything is fine in FF.

Anyone know the alignment in IE? Thanks.
 
freeflow
post Aug 5 2007, 04:49 PM
Post #2


t-t-t-toyaaa
********

Group: Official Member
Posts: 19,821
Joined: Apr 2004
Member No: 11,270



I don't have IE but why not put it in a div and position it that way without the right and left? That way it stays aligned better.

<div id="name"><img src="urlhere"></div>

<style type="text/css">
#name{
position: absolute;
left: 50%;
top: 0%;
margin-top: #px;
margin-left: #px
z-index: #;
}
</style>


 
Relentless
post Aug 5 2007, 05:06 PM
Post #3


sang loves hayden.
*******

Group: Staff Alumni
Posts: 3,373
Joined: Feb 2004
Member No: 5,687



The image is already in a div. I'm not positioning it. I just want the image to be on the right and the text goes around it and such. It works perfectly fine on myspace but it's not working right in my CB profile. =/
 
YourSuperior
post Aug 5 2007, 06:19 PM
Post #4


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



Try it with quotations. Like this:
CODE
<img src="URL HERE" align="right">
 
Relentless
post Aug 5 2007, 06:52 PM
Post #5


sang loves hayden.
*******

Group: Staff Alumni
Posts: 3,373
Joined: Feb 2004
Member No: 5,687



Didn't work. Gahhh. =X
 
YourSuperior
post Aug 5 2007, 07:29 PM
Post #6


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



The only way I could get it to work in Internet Explorer was like this:

CODE
<style type="text/css">
.sang {
float: right;
}
</style>

<img src="http://img297.imageshack.us/img297/421/mefv2.jpg" class="sang">


_smile.gif
 
Relentless
post Aug 5 2007, 08:16 PM
Post #7


sang loves hayden.
*******

Group: Staff Alumni
Posts: 3,373
Joined: Feb 2004
Member No: 5,687



THANKS ALVIN! It worked. I really never thought of that. o.O

The first line made it look close together to the 2nd line but oh well. It worked!

This can be closed now. =D
 
YourSuperior
post Aug 5 2007, 08:25 PM
Post #8


;)
*******

Group: Staff Alumni
Posts: 9,573
Joined: Feb 2005
Member No: 99,124



^You're welcome Sang! _smile.gif
 
*digitalfragrance*
post Aug 5 2007, 10:48 PM
Post #9





Guest






Topic Closed
Good work guys!
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: