jarrett000 Posted February 22, 2009 Share Posted February 22, 2009 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 More sharing options...
jeffman Posted February 22, 2009 Share Posted February 22, 2009 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 More sharing options...
jarrett000 Posted February 23, 2009 Author Share Posted February 23, 2009 Thx for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.