Reputation: 101
I'm creating a wordpress page and creating a certain part with background image, The main issue was, one of the image in css is being cut or split here is the link to the site:
http://testpress.dramend.com/amend-2/ the image being split was loopmid.gif which was not connecting to looptop.gif here is the screenshot:
<tr>
<td height="23"><img width="707" height="23" alt="" src="http://dramend.com/looptop.gif"></td>
</tr>
Have I done anything wrong in my CSS?
Thanks
Upvotes: 1
Views: 149
Reputation: 1
In your css file please add following lines:
table, td, tr {
margin:0;
padding:0;
}
Upvotes: 0
Reputation: 3667
Since you are using table
for designing layout, which is not suggested as Mr.Alien said, you may use display:table;
for that img
tag as well.
Upvotes: 0
Reputation: 166
Instead of using table for design, try using div
and CSS Positioning
Upvotes: 0
Reputation: 157334
You need to use display: block;
or you can use vertical-align: bottom;
as well for the img
tag since it is inline
element by default...that will solve the issue.
Also, you are using table
for designing layouts which is just dirty.. Learn CSS Positioning, floats, and make layouts using other tags like div
, section
etc
Upvotes: 7