Jump to content
Killersites Forums

text underneath picture


Recommended Posts

These edits are for the first two images:-

CSS

.pictext1 {                      width: 250px; float: left; 
   margin: 0 0 0 140px; 
   font-family: Arial, helvetica, sans-serif;
   font-size: 10px;
}
.pictext2 {                    width: 250px; float: left; 
   margin: 0 0 0 10px;
   font-family: Arial, helvetica, sans-serif;
   font-size: 10px;
}
.pictext1 p, .pictext2 p { text-align: center; } /*added styles*/

 

Markup:-

 

Tennis Night - March 29, 
2008


style="margin: 0 0 20px 0px;">

Singing Duo



style="margin: 0 0 20px 0px;">

Taiwanese MJ    

 

Note the edited margin for the first one.

 

The images have been put in a div with the p tag and the p tag has text-align: center; the div has the width of the image.

Edited by Wickham
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...