Jump to content

Space Under Images


jarrett000

Recommended Posts

I have a page where i have images that are supposed to be like tabs, connected to the top of the table. but there is a space under the images/above the table so it looks crappy. I've gotten advice that the way to go was display:block which would work if i didnt have more than 1 img thats supposed to be on 1 line. so the question is:Is there a way to eliminate the space below the images/above the table and still keep them on the same line?

Link to comment
Share on other sites

The float and clear properties are designed for this situation:

img {	display: block;	float: left;}table {	 clear: both; }

Now the images WILL line up in a row. (I used type designators, but you should probably use class names.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...