Welcome visitor
* Login
* Register
It is currently January 22nd, 2019, 8:50 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 5 posts ] 
Author Message
  image and a description
PostPosted: June 5th, 2009, 7:55 am 

Posts: 31
hi,


how can i put a description under a picture right on the center of the picture without using tables and postion:absolute? does anyone has a code for that?


thanks in advanced for any help and your time.


Top
 Profile  
 
  Re: image and a description
PostPosted: June 5th, 2009, 8:15 am 

Posts: 96
<div style="text-align:center"><img src="img.bmp" /><br/>T E X T</div>


Top
 Profile  
 
  Re: image and a description
PostPosted: June 5th, 2009, 8:20 am 

Posts: 31
Thanks William, but know it centers the image as well..


Top
 Profile  
 
  Re: image and a description
PostPosted: June 5th, 2009, 8:22 am 

Posts: 96
What happens is that the default div size is width:100%, so just add the desired width to the div and that will fix it, e.g.
<div style="width: 500px; text-align:center">


Top
 Profile  
 
  Re: image and a description
PostPosted: June 5th, 2009, 8:23 am 

Posts: 31
thaaank you so much, now it works.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 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