Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 03:50:33 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155543 Posts in 21714 Topics by 7737 Members
Latest Member: simpleguy3
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: IMG center  (Read 226 times)
ckvist

Offline Offline

Posts: 13


« on: March 11, 2011, 08:25:35 AM »

Hi, i have a problem. With the code below, only the image below is centered! - Why? - Template error?

<p style="text-align: center;"><img width="300" height="400" align="middle" src="http://spanien.familienkvist.dk/media/Huset/large/_8826129538.jpg" alt="" /></p>
<p style="text-align: center;">&nbsp;</p>
<p style="text-align: center;"><input width="300" type="image" height="400" align="middle" src="http://spanien.familienkvist.dk/media/Huset/large/_8826129538.jpg" /></p>
Logged
PurpleEdge

Offline Offline

Posts: 232



WWW
« Reply #1 on: March 11, 2011, 01:00:19 PM »

style="text-align: center;" will center an image.

What are you trying to achieve?
Logged
ckvist

Offline Offline

Posts: 13


« Reply #2 on: March 11, 2011, 01:04:06 PM »

I'm trying to center the images.

The interesting thing is, that i have done EXACTLY the same.... Inserted the image, in it's options i have skaled it a bit, and then selected centered ... - The one that is made as an input-button get centered, the one that is made as an image dosn't !

I'm doing it in the WYSIWYG editor.
Logged
ckvist

Offline Offline

Posts: 13


« Reply #3 on: March 13, 2011, 11:26:06 AM »

Problem solved. It was in the style! - Thanks.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!