homepage Welcome to WebmasterWorld Guest from 54.145.252.85
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Css problem on different resolutions.
adamnichols45

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4222439 posted 9:17 pm on Oct 26, 2010 (gmt 0)

I had someone do some work for me on some css as I have only just started learning and need it finished like yesterday.

I basically have an image and then another image next to it and the bottom of the images should all run through to look like they are both sitting on the same line.

They do on 1024 - 768 resolutions but looking at them on my monster 2560 res the image jumps up by about 3px

Now this is not good enough for me and I want them inline on every resolution why could this be happening surely setting px widths should result in the same output regardless of the resolution?

 

rainborick

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 4222439 posted 3:17 am on Oct 27, 2010 (gmt 0)

It sounds to me like you may have tested with two different browsers on the two different computers. Try setting the top and bottom margins on the <img> tags to 0 with something like:

<img src="image.gif" style="margin:0px 3px;">

Hoople

10+ Year Member



 
Msg#: 4222439 posted 2:25 am on Oct 30, 2010 (gmt 0)

Just a wild guess - someone may have edited one of the images in a program that added a 3 pixel border? Zoom to check!

I had one instance where setting an image's border to border=0 fixed a baseline issue I had. The image was inline with text in a div.

milosevic



 
Msg#: 4222439 posted 4:50 pm on Nov 2, 2010 (gmt 0)

Yeah it's most likely to be a browser compatibility issue I would say.

Have you looked at the page in IE6?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved