This is pretty weird. At work and on my iPhone I can see my website's background-image. However on my home computer (Mac) I can't see it. The background is just white. How can that be and how can I solve this weird issue?
Here's the styling:
body {
background-image: url('../gfx/background.png');
background-repeat: repeat-y;
background-repeat: repeat-x;
font-family: 'Lato', Arial, Verdana, sans-serif;
}
Related
I have the following css in which I set the background and font:
.my_style_1{ background-image:url(field.jpg);
background-repeat: no-repeat;
background-size: cover;
height:950px;
font-size: 1.5em;
font-family:Arial, Helvetica, sans-serif; ;
font-weight:500;
color: rgb(255,255,255)}
and in ui.R I am using the following:
fluidRow(
box(width=12,
class="my_style_1",
div(br(),h1("Travel Diary"),style="position:relative;right:150px;text-align: center;")
)
My problem now is it seems like only the background css is working- not matter how I changed the font size it didnt work! However I did observe that when I increased the font size- the br() height increases but i don't know what is going wrong here.
Okay I figured it out. I used the wrong tag h1. Once I changed it to p it actuallly worked.
enter image description here
I am getting a background image from external CSS to display. When I check in the element inspector it shows me invalid property used.
body {
font-family: 'Helvetica Neue', Arial, Helvetica, Verdana, sans-serif;
margin: 0;
padding: 0;
background-image: url(../img/background.jpg);
background-size: cover;
overflow: hidden;
}
What am I doing wrong here?
Use 'background', not 'background-image'. I.e.
background: url(../img/background.jpg);
You have written background-image:url(..img/background.jpg) this is correct,may be you have inserted a wrong path or may you have leave a space in "background.jpg" file like this.."backgroung .jpg" While crating th image name.. Check it out..i have leave a large space in image file for ur understanding,there may be one space only
I have a simple html and css website which was working fine until i updated some content.
The main background is a colour with one image in the top right corner which is in the 'body' div properties. the font family is also in the 'body' properties.
everything else in my website (div layouts, menu bar background image and div back colours etc.) are all displaying ok, but i have no main background and all font is displaying at a small size and as serif when my set font family is san-serif.
body{
min-height:700px;
min-width:900px;
margin: 0;
padding: 0;
color: #000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 100%;
line-height: 1.4;
background-color: #666;
background-image: url(Images/backleave4.png);
background-repeat: no-repeat;
background-position: right top;
}
As its was working just fine before, i assume the issue is that for some reason its not reading all the body properties correctly.If anyone can give me some advice that would be awesome!
Thanks
EDIT:
Over night it somehow fixed itself, for the most part. I don't know what was wrong. Gahh technology!
Your posted CSS is fine. Can you post a link to the website?
Upgrade your #rightwrap to-
background: rgba(255, 255, 255, 0.6);
I think you want to show your background image all over the page.
I have a background image set for the web app first time its working good but when i refresh browser its not loading.Another behaviour i noticed chrome its working good but IE is having issue.Any idea why its happening ?
body {
/*background: #fafafa;*/
background: url('../images/home.gif') no-repeat 0 0;
background-attachment: fixed;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #333;
}
From comments I could understand browser is caching image, HTTP status 304 confirms it.
Use backgroud image url appended with some query param with version (random)number. This prevents browser from aggressive caching
url('../images/home.gif?v=0')
<body style="background-image: url('https://*****/images/bg-01.jpg'); background-size: 100%;">
Try this
I was trying to set my page a background image and yet it didn't seem to work the way I expected it to. Here's the code:
body
{
background-image: url("sf.jpg");
background-repeat: no-repeat;
background-size: 100%;
font-family: "Kozuka Gothic Pro", Avenir, sans-serif;
}
I was wondering what went wrong here. Thanks in advance. Note: the image was in the same folder as the file i'm running.
Demo
Just a small change in your code.
body {
background: url("http://i.stack.imgur.com/DUYP4.jpg?s=128&g=1");
background-repeat: no-repeat;
background-size: 100%;
font-family: "Kozuka Gothic Pro", Avenir, sans-serif;
}
Coz background size cannot be 100 it can be cover or contain, and use background instead of background-image and all, use a background-size:cover it will work
body {
background : url (ur image path);
background-size:cover;
width:100%;
//and other necessary code
}
Looks like you have double tab indent bring it all back on tab.
Change the permission of the image to 777 and the image will show up correctly.