Jump to content

[SOLVED] Image alignment


BillyBoB

Recommended Posts

I am currently developing a blog site for people who like anime Ex. Inuyasha...

The site looks great and isnt completed but is getting there. The thing is there is an error in IE that i cant fix but this error doesnt exist in Firefox.

The error I am talking about is my images on the border of the main content and the image for my footer are out of the positions they should be in.

 

the site is topgamingteam.net

 

thanks in advance,

BillyBoB

Link to comment
https://forums.phpfreaks.com/topic/58529-solved-image-alignment/
Share on other sites

I have a little example that can help you out

be sure to give the "id" attibute to your image tag

<style>
#footer_image{
/*this what firefox will do*/
margin-top:100px!important;
/*this is what IE will do*/
margin-top:10px;
}
</style>
<img id="footer_image" src="http://www.topgamingteam.net/Images/footeranime.gif" />

yeah your right guess thats what you get for using too much tables  ;)

 

try to remove the footer table and place the following code instead

	<table cellpadding="0" cellspacing="0" border="0" align="center" style="font-size: 11px; background: url(Images/footerbackground.gif) bottom repeat-x;" valign="top" width="100%" height="53">
		<tr>
			<td height="100%" width="100%" border="0">
				<style>
				#footer_left{
					background: url('Images/footeranime.gif');
					width:400px;
					height:194px;
					float:left;
				}
				#footer_right{
					width:400px;
					height:194px;
					float:left;
				}
				#copyright{
					margin-top:100px;
				}
				</style>
				<div>
					<div id="footer_left">
					</div>
					<div id="footer_right">
						<div id="copyright">
							<a href="termsofuse.html" target="_blank">
								Terms of Use</a> - <a href="privacypolicy.html" target="_blank">Privacy Policy
							</a> -- Copyright Anime Blog Site © 2007
						<div>
					</div>
				</div>
			</td>
		</tr>
	</table>

For that I noticed some td elements you styled using css

like:

<td width="100%" height="7" style="background: url(Images/linetopbottom.jpg) repeat-x;">

while the corners you just place a image tag inside

<td width="7" height="8" >
  <img border="0" src="Images/toprightcorner.jpg">
</td>

 

Just style it all using CSS that should solve the spacing problem

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.