kurt.santo Posted October 26, 2007 Share Posted October 26, 2007 I have a div with a picture (including caption) inside my content div, which includes only the div plus text. The text does not vertically line up with the top border of picture div. Tried vertical-align, but does not do the job... #mainContent{border-left-style:dotted;border-left-width:1px;border-left-color:#484FBD;margin: 30px 20px 20px 209px;padding: 0px 20px 0px 40px;text-align:justify;vertical-align:top;} #mainContentPicture {float:left; border-style:solid;border-width:1px;border-color:#7E8082;margin:3px 30px 15px 0px;padding:1px 1px 1px 1px;}#mainContentPicture img{padding:0px 0px 10px 0px;margin:0px; } Any suggestions?Kurt Link to comment Share on other sites More sharing options...
jlhaslip Posted October 26, 2007 Share Posted October 26, 2007 Any suggestions?yes,,,, post a link. Link to comment Share on other sites More sharing options...
kurt.santo Posted October 27, 2007 Author Share Posted October 27, 2007 yes,,,, post a link.Page is under http://www.jalp.co.uk/site1/site1.htm. As you can see the top border of the box with the red gif does not line up with the top level of the adjacent text (do not worry, those colours won't stay;-))...Kurt Link to comment Share on other sites More sharing options...
jlhaslip Posted October 27, 2007 Share Posted October 27, 2007 set a couple of pixels of padding-top to the image works.those colours are good if you are an American Link to comment Share on other sites More sharing options...
kurt.santo Posted October 28, 2007 Author Share Posted October 28, 2007 set a couple of pixels of padding-top to the image works.those colours are good if you are an American Added a margin of 3px, which also works... But does this make sense? I would have thought it would line up nicely... Maybe I will try to sell my new website to an American, might make a few bucks;-)Kurt Link to comment Share on other sites More sharing options...
jlhaslip Posted October 28, 2007 Share Posted October 28, 2007 do it quickly while it is still worth something Link to comment Share on other sites More sharing options...
kurt.santo Posted October 29, 2007 Author Share Posted October 29, 2007 do it quickly while it is still worth something Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.