开发者

Lines in web layout for some resolutions

I have a problem with th开发者_如何学编程e layout I'm creating- problem being that in certain resolutions (or if you zoom in) you can see where the outlining of the div boxes are.

Here's what it's supposed to look like:

Lines in web layout for some resolutions

Here's what it looks like at some resolutions (or zoomed in):

Lines in web layout for some resolutions

If you need to see the website, it's here, though obviously it's not finished yet. You might immediately see the problem based on your resolution, if not you could zoom in or change your monitors resolution.

I would imagine this is a common problem with an easy solution. Thanks for your help!


If you change your #righthand to have a float:left, the vertical line at the right disappears.

#righthand {
    width: 368px;
    height: 373px;
    background: url("../img/right.png");
    float: right;  // CHANGE TO LEFT
}

And if you change your #tp to height:248px, the other horizontal line disappears.

#tp {
    width: 1024px;
    height: 249px;  //CHANGE TO 248px
}


I didn't have enough time to look at the site before it was taken down but I think it could be as simple as setting

background: transparent url(imgsrc) no-repeat left top;

that shorthand for the background image in css will lock in the spot. Other than that I would make sure you have

margin: 0; padding: 0;

so that you can specify the exact width and make sure the cuts that are made are done to a grid so that when you slice the image you have an exact width.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜