Jump to content

align an image


otuatail

Recommended Posts

Hi I have created this style in a seperate style sheet but not sure how it is implemented.

#CenterMe
{
    display: block;
    margin-left: auto;
    margin-right: auto;
}

 

      <div style="border-style:solid;border-width:1px;border-color:green;width:580px">
        <div style=CenterMe>
        <img src="MalawiPics/MalawiMe.jpg" alt="">
        </div>
      </div>

 

Link to comment
https://forums.phpfreaks.com/topic/185253-align-an-image/#findComment-979051
Share on other sites

I have tried this

 

But it still is not aligned

 

<div style="border-style:solid;border-width:1px;border-color:green;width:580px">        <div id="CenterMe">        <img src="MalawiPics/MalawiMe.jpg" alt="">        </div>      </div>

www.des-otoole.co.uk?counter=0

 

Link to comment
https://forums.phpfreaks.com/topic/185253-align-an-image/#findComment-979237
Share on other sites

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.