Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to center images on index/homepage


tobinuk

Recommended Posts

Posted

Hi

 

Is there some kind sole out there who can advise me where im going wrong?

 

I have to images on the homepage of my site that i would like to center....at the moment whatever I do they seem to stay hugging the left colum (aligned to left).

 

The image code is this in my english/index.php

 

 

MAybe a tad scrapping...........still learning!

 

 

define('TEXT_MAIN', ' <font style="font-size:29px" color="#000000" face="Arial"><b> W</b><font style="font-size:19px" color="#000000" face="Arial">elcome to</font><font style="font-size:16px" color="#000000" face="Arial">..........</font><font style="font-size:15px" color="#000000" face="Arial"><b> </font><font style="font-size:29px" color="#FF00FF" face="Baskerville Old Face">Little-Miss-Twisted.Com</font><font style="font-size:16px" color="#FF00FF" face="Arial"></b> </font>
<br>
<font style="font-size:13px" color="#000000" face="Arial"><b>We currently hold the largest stock of male and female sextoys..... <font style="font-size:14px" color="#FF00FF" face="Baskerville Old Face">We have got the lot!!</font> <p>
Ranging from Rampant Rabitts, Fleshlights, Bondage & Fantasy Wear,Massage Oils, Lubricants, Restraints, Aphrodisiacs, Adult Sex Games.   <p>
<align="center"> <a href="http://little-miss-twisted.com/index.php/cPath/11_54"><img src="fpbann.jpg" id="Image1" alt="Click Here For A Fantastic Selection Of Rabbits" align="top" border="0" style="width:441px;height:290px;"></a></align="center"></div>

<p>
With over 13,000 Products to choose from there is definitely something for everyone! Discreet shipping is standard practice and low cost shipping is out of this world !!!!!</font><font style="font-size:15px" color="#000000" face="Times New Roman"><br>
</font><p align="right">
<p>
<align="center"> <a href="http://little-miss-twisted.com/index.php/cPath/6"><img src="the_cone.jpg" id="Image1" alt="Click Here For More Details On The Cone" align="top" border="0" style="width:441px;height:270px;"></a></align="center">
<a href="http://www.bebo.com/Profile.jsp?MyProfile=Y"><img src="blank.jpg" id="Image1" alt="bebo" align="top" border="0" style="width:1px;height:1px;"></a></div>

Posted

Change this:

 

<align="center">

to:

 

<center>

And this:

 

</align="center">

to:

 

</center>

TWO PLACES.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

<center> is depreciated, using <div style="text-align:center;"> </div> would be better

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

From http://www.w3schools.com/TAGS/deprecated.htm

 

Deprecated

A deprecated element or attribute is one that has been outdated.

 

Deprecated elements may become obsolete in the future, but browsers should continue to support deprecated elements for backward compatibility.

I suppose the keyword in all that is "should".

 

Personally, I think you're picking fly *carp* out of pepper, but that just my own POVP I guess.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
From http://www.w3schools.com/TAGS/deprecated.htm

 

 

I suppose the keyword in all that is "should".

 

Personally, I think you're picking fly *carp* out of pepper, but that just my own POVP I guess.

 

Never heard that expression!

 

My point would be if your intending getting W3C validation, you will fail if you use depreciated elements.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Posted

Well, there you have it, Steven.

 

Do you want a cigarette that's low in tar and nicotine, or one that tastes good?

:unsure:

 

(!)

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...