Welcome visitor
* Login
* Register
It is currently May 20th, 2019, 6:37 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  center an image inside a div
PostPosted: May 27th, 2009, 8:05 am 

Posts: 31
hi, im, as many of you, are trying to use divs instead of tables but im stock with a little thing here, how can i center an image inside a div? my div has width of 100% so the image would be right on the middle of the screen. thanks.


Top
 Profile  
 
  Re: center an image inside a div
PostPosted: May 27th, 2009, 8:13 am 
User avatar

Posts: 112
<div style="width: 100%;  text-align: center">
<img src="pic.jpg" style="margin: auto"/></div>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron