Tina_Bhole
asked on
the background image does not look the same in the browser
Hi Experts,
This is the snippet from the .css file of my web application
body
{
background-image:url("/Ima ges/body_b g.jpg");
background-repeat:repeat;
background-position:left top;
font-size: .80em;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
border:none;
padding: 0px;
color: #474646;
}
Please see attached the body_bg.jpg which I am using as a background image for my web application, but, when viewed in the browser, it looks different to what it is actually like.
Please see Changedbg.jpg to see what it looks like in the browser.
I have tested this in IE, Chrome, Firefox. In none of these browsers the image looks appropriate.
Could someone please suggest something?
Thanks.
Changedbg.JPG
body-bg.jpg
This is the snippet from the .css file of my web application
body
{
background-image:url("/Ima
background-repeat:repeat;
background-position:left top;
font-size: .80em;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
border:none;
padding: 0px;
color: #474646;
}
Please see attached the body_bg.jpg which I am using as a background image for my web application, but, when viewed in the browser, it looks different to what it is actually like.
Please see Changedbg.jpg to see what it looks like in the browser.
I have tested this in IE, Chrome, Firefox. In none of these browsers the image looks appropriate.
Could someone please suggest something?
Thanks.
Changedbg.JPG
body-bg.jpg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Good job, Ronak_Patel.
ASKER
Two things. You can't make the backgrounds for the two sections line up or at least I can't. And second, I'm wondering if you are operating at a screen resolution other than the 'native' screen resolution. I am not getting that 'banding' effect on my screen when I set that image as a background in Firefox.
Try this one tested. Change image path which i have used here img only.
The CSS
The CSS
body
{
background:url("img/body-bg.jpg") repeat-y top left;
font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
margin: 0px;
border:none;
padding: 0px;
color: #474646;
}
body-bg.jpg
ASKER
Hi Experts,
Thanks a lot for your help.
I tried every single thing you all suggested.
Another thing is, it shows up correctly in Google Chrome and Fire Fox when uploaded on to the web server.
Is not showing correctly in IE though.
Thanks a lot for your help.
I tried every single thing you all suggested.
Another thing is, it shows up correctly in Google Chrome and Fire Fox when uploaded on to the web server.
Is not showing correctly in IE though.
ASKER
Hi Ronak,
I cropped the image a little from the bottom as well and it worked for me :)
Would like to thank all the experts for their input.
I cropped the image a little from the bottom as well and it worked for me :)
Would like to thank all the experts for their input.