I have been fighting with a jumbotron background image which I managed to properly line up on the website but I can't seem to make it be mobile responsive. The link for the site is puremistdiffusers.com
Here is the HTML:
<div class="jumbotron" style="background-image: url(https://puremistdiffusers.com/wp-content/uploads/2017/02/slider-candle-jpeg-dark.jpg); background-repeat: no-repeat;">
<div class="container">
<h1 class="text-uppercase">YOUR AROMATHERAPY</h1>
<p>UP TO 40% OFF ON ALL PRODUCTS</p>
<a class="btn btn-default btn-inverse btn-lg text-uppercase topbutton" href="https://puremistdiffusers.com/product/" role="button">Shop Now</a>
</div>
</div>
and here is the CSS:
}
.jumbotron {
background-color: #fff !important;
}
.jumbotron {
padding-top: 48px;
padding-bottom: 48px;
height: 397px !important;
background-position: center;
width: 100%;
}
.jumbotron .container {
max-width: 100%;
}
.jumbotron h1, .jumbotron .h1 {
color: #fff;
font-size: 50px !important;
text-align: center;
}
.jumbotron h1, .jumbotron .h1 {
color: #fff;
font-family: "Adobe Garamond Pro", "Adobe Caslon Pro", Helvetica, Arial, sans-serif;
font-size: 1.5rem;
}
.jumbotron p {
margin-bottom: 15px;
font-size: 30px;
font-weight: 400;
color: #fff;
text-align: center;
}
.btn-default.btn-inverse {
color: #FFFFFF;
background-color: #162e00;
border-color: #FFFFFF;
}
.topbutton {
padding: 1% 6%;
font-size: 20px;
line-height: 2.375rem;
border-radius: 0.1875rem;
margin-left: 38%;
margin-top: 3%;
}
.btn:hover{
background:transparent;
color:#fff;
}
#media (max-width:768px){
.jumbotron h1, .jumbotron .h1 {
color: #fff;
font-size: 30px !important;
}
.jumbotron p {
font-size: 17px;
}
.jumbotron {
height: 259px !important;
}
.btn {
margin-left: 30%;
}
}
#media (max-width:640px){
.jumbotron h1, .jumbotron .h1 {
color: #fff;
font-size: 20px !important;
}
.jumbotron p {
font-size: 12px;
}
.jumbotron {
height: 259px !important;
}
.btn {
margin-left: 30%;
}
}
#media (max-width:480px){
.jumbotron h1, .jumbotron .h1 {
color: #fff;
font-size: 17px !important;
}
.jumbotron p {
font-size: 12px;
}
.jumbotron {
height: 259px !important;
}
.btn {
margin-left: 30%;
}
}
I tried several different techniques that I found here on stackoverflow but I would either get everything to line up on the left and not be centred or centre everything but loose the mobile responsiveness. Thanks in advance.
Ok , to add this lines :
.jumbotron {
background-image: url('your image background');
height: 100%;
width: 100%;
background-size: cover;
}
.jumbotron .container {
position: relative;
top:100px;
}
and in your head tag in html add this :
<meta name="viewport" content="width=device-width, initial-scale=1">
Related
This is full css of the code. On tablet and on the computer it looks good but not on the mobile device when the website is published. Logo and h1 are not responsive. This is full css of the code. On tablet and on the computer it looks good but not on the mobile device when the website is published. Logo and h1 are not responsive.
body {
margin: 0;
padding: 0;
}
/* header */
.logo-img {
width: 420px;
}
h1 {
text-align: right;
font-family: 'Abel', sans-serif;
font-size: 35px;
margin-top: 20px;
color: #1a1a1a;
text-transform: uppercase;
}
h2 {
text-align: right;
font-family: 'Abel', sans-serif;
font-size: 21px;
color: #1a1a1a;
font-weight: 100;
text-transform: uppercase;
letter-spacing: 6px;
}
.line {
width: 97.5%;
}
/* end header */
/* content */
.main-img {
width: 100%;
}
p {
text-align: center;
margin-top: 10px;
font-family: 'Quicksand', sans-serif;
font-size: 20px;
font-weight: 100;
color: #1a1a1a;
}
.copy {
font-size: 15px;
font-weight: 100;
font-family: 'Quicksand', sans-serif;
}
/* #map {
width: 55%;
height: 200px;
box-sizing: border-box;
text-align: right;
} */
/* end content */
/* footer */
.footer-img {
width: 350px;
margin-right: 15px;
}
h3 {
text-align: center;
font-family: 'Abel', sans-serif;
font-size: 30px;
color: #5d75ab;
text-decoration: none;
margin-top: 10px;
text-transform: uppercase;
}
h4 {
text-align: center;
margin-top: 30px;
text-transform: uppercase;
letter-spacing: 2px;
font-family: 'Abel', sans-serif;
font-size: 24px;
font-weight: 100;
color: #1a1a1a;
}
h5 {
text-align: center;
margin-top: 30px;
font-family: 'Quicksand', sans-serif;
font-size: 20px;
font-weight: 100;
color: #1a1a1a;
}
a href {
text-align: center;
}
a:link {
color: #5d75ab;
text-decoration: none;
}
a:visited {
color: #5d75ab;
text-decoration: none;
}
a:hover {
color: #5d75ab;
text-decoration: none;
color: #1a1a1a;
}
a:active {
color: #5d75ab;
text-decoration: none;
}
.footer-img-container,
.top-row {
margin-top: 30px;
}
.link {
text-align: center;
display: block;
}
/* end footer */
/* Mobile Phone Responsiveness - Nexus 5 */
#media screen and (max-width: 414px) {
h1 {
font-size: 14px !important;
line-height: 80%;
margin-top: 10px;
}
h2 {
font-size: 11px;
letter-spacing: 1.2px;
}
p {
font-size: 12px;
}
h3 {
font-size: 16px;
}
h4 {
font-size: 10px;
}
h5 {
font-size: 11px;
}
.logo-img {
width: 180px;
position: absolute;
}
.main-img {
width: 100%;
}
.footer-img {
width: 100%;
}
.line {
width: 90%;
}
.copy {
font-size: 10px;
font-weight: 100;
font-family: sans-serif;
}
}
/* Tablet Responsiveness - IPad */
#media screen and (min-width:416px) and (max-width: 768px) {
h1 {
font-size: 25px;
margin-top: 0px;
}
h2 {
font-size: 20px;
letter-spacing: 2px;
}
p {
font-size: 16px;
}
h3 {
font-size: 22px;
}
h4 {
font-size: 18px;
}
h5 {
font-size: 12px;
}
.logo-img {
width: 250px;
position: absolute;
}
.main-img {
width: 100%;
}
.footer-img {
width: 100%;
}
.line {
width: 95%;
}
.copy {
font-size: 12px;
font-weight: 100;
font-family: sans-serif;
}
}
You can use bootstrap image responsive class.
<img src="images/logo.png" alt="logo" class="img-responsive"/>
And for H1 tag you can use media query to make it responsive font size.
h1 {
font-size: 22px;
}
.img-responsive {
width: 100%;
max-width: 200px
}
#media screen and (max-width: 360px) {
h1 {
font-size: 12px !important;
line-height: 80%;
margin-top: 10px;
}
.img-responsive {
width: 100%;
max-width: 100px
}
}
<img src="https://www.freelancingdesign.com/wp-content/uploads/2015/04/fd-theme-590x300.jpg" alt="logo" class="img-responsive" />
<h1>Logo Goes here</h1>
#media screen and (max-width: 360px) {
h1 {
font-size: 12px !important;
line-height: 80%;
margin-top: 10px;
}
}
Make sure the media query css should be below the main css then it will work, Sequence is matter.
Hope this helpful.
/*Desktop responsive*/
.logo-img {
width: 260px;
}
h1 {
font-size: 58px !important;
line-height: 80%;
margin-top: 10px;
}
/* Mobile Phone Responsiveness */
#media screen and (max-width: 360px) {
h1 {
font-size: 12px !important;
line-height: 80%;
margin-top: 10px;
}
h2 {
font-size: 9px;
letter-spacing: 1.2px;
}
p {
font-size: 12px;
}
h3 {
font-size: 16px;
}
h4 {
font-size: 8px;
}
h5 {
font-size: 11px;
}
.logo-img {
width: 160px;
position: absolute;
}
.main-img {
width: 100%;
}
.footer-img {
width: 100%;
}
.line {
width: 90%;
}
.copy {
font-size: 10px;
font-weight: 100;
font-family: sans-serif;
}
}
<!DOCTYPE html>
<html lang="sh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/css?family=Abel" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Frigo MMB</title>
</head>
<body>
<!-- header -->
<div class="container">
<div class="row top-row">
<div class="col-md-6">
<img src="https://www.stickpng.com/assets/images/580b57fcd9996e24bc43c529.png" alt="logo img" class="logo-img">
</div>
<div class="col-md-6">
<h1>Hladjenje & <span style="color: #5d75ab">Klimatizacija</span></h1>
<h2>011.8525636 | 063.7591345</h2>
</div>
</div>
</body>
</html>
May some of the existing code overwriting your h1 tag so i have added !important it will help overwrite the other h1 class.
Hope this snippet will help you.
You can try something like this, if image have width of 400px, then use:
#media screen and (max-width: 400px) {
img {
width: 100%;
}
}
You may need to use different selector for img, same that set the width in your other CSS if you set it.
With header you can put it above the image if it's next to image on desktop.
Well I'm pretty new to responsive design so please forgive me if I ask stupid questions.
So I was creating a website for myself in Dreamweaver. The desktop version of my site looks okay but whenever I open it using my phone or my tablet, the elements do not scale properly.
I've used Media Queries and the site looks okay in Responsive Design mode of Firefox, but in actual devices they do not.
This is my index.html:
<!DOCTYPE html>
<html>
<head>
<title>Home</title>
<link href="css/main.css" rel="stylesheet">
<link href="css/bootstrap.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Oswald:200,300,400|Raleway:300,400,500|Roboto:100,400,500,700" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<div class="intro">
<div class="col-xs-12 text-center">
<div class="heading">
Hi
</div>
<div class="para">
Here goes a brief description about myself and what I do.
</div>
<div class="knowMe">
<input class="button" type="button" name="getToKnowMe" value="Get to know me"/>
</div>
<div class="start">
<a href="#">
or contact me
</a>
</div>
</div> <!--col-xs-->
</div> <!--intro-->
</div> <!--container fluid-->
</body>
</html>
And this is my main.css:
*{
font-family: roboto;
}
a, a:hover, a:link, a:active, a:visited{
color: white !important;
text-decoration: none !important;
}
html{
font-size: 16px;
}
.container-fluid{
padding: 0 !important;
}
.intro{
background: linear-gradient(#E93D1D,#E95236);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
margin: 0;
width: 100%;
color: white;
padding: 5em;
height: 48em;
}
.intro .heading{
margin-top: 0.2em;
font-size: 8em;
font-weight: 100;
text-align: center;
}
.intro .para{
font-size: 2.5em;
font-weight: 100;
text-align: center;
}
.intro .start{
font-size: 1.5em;
font-weight: 100;
text-align: center;
text-decoration: underline;
text-decoration-color: white;
text-decoration-style: dotted;
}
.intro .button{
box-sizing: content-box;
cursor: pointer;
padding: 1em 2.5em;
border: 2px solid white;
border-radius: 50px;
font-size: 1.5em;
font-weight: 300;
color: white;
text-overflow: clip;
margin: 3em 2em 0.75em 2em;
background: none;
transition: all 300ms cubic-bezier(0.42, 0, 0.58, 1);
}
.intro .button:hover{
border: 2px solid white;
border-radius: 5px;
background: white;
color: #E95236;
}
#media only screen and (max-width: 320px){
.intro{
padding: 1em;
height: 41em;
}
.intro .heading{
font-size: 5em;
padding-top: 1em;
}
.intro .para{
font-size: 1.5em;
}
.intro .button{
font-size: 1.2em;
padding: 0.8em 0.8em;
}
.intro .start{
font-size: 1em;
}
}
#media only screen and (min-width: 321px) and (max-width:375px){
.intro{
padding: 1em;
height: 48em;
}
.intro .heading{
font-size: 8em;
padding-top: 0.65em;
}
.intro .para{
font-size: 2em;
}
.intro .button{
font-size: 1.5em;
padding: 0.75em 0.75em;
}
.intro .start{
font-size: 1.2em;
}
}
#media only screen and (min-width: 376px) and (max-width:414px){
.intro{
padding: 1em;
height: 53em;
}
.intro .heading{
font-size: 8em;
padding-top: 1em;
}
.intro .para{
font-size: 2em;
}
.intro .button{
font-size: 1.5em;
padding: 0.75em 1.2em;
}
.intro .start{
font-size: 1.2em;
}
}
This is how my website looks in Firefox Responsive Design Mode:
https://image.ibb.co/jCr54k/moz.jpg
This is how it looks in my iPhone SE:
https://image.ibb.co/ihA4x5/IMG_1675.png
It'd be great if someone could just tell me what I'm doing wrong.
Thanks
try adding this class
html,body{
width:100%;
height:100vh;
/* or just add*/
background-color: #e94224;
/* and no need to use those classes */
}
.container-fluid {
padding: 0 !important;
height: 100%;
display: inline-block;
}
.intro {
/* change the height from 48em to 100% */
height: 100%;
}
It all seems fine to me, with the exception of body not having any height.
try adding css:
body {
height: 100%;
}
UPDATE: Never mind, this won't be enough. You've got some heights set in other places.
I have been trying to use a static image on my website, but there is a large gap between the header and the image, I've tried removing padding and changing the image height in Photoshop and in HTML.
Here's a fiddle of my problem https://jsfiddle.net/o27w80ve/
section.module:last-child {
margin-bottom: 0;
}
section.module h2 {
font-family: "Roboto Slab", serif;
font-size: 30px;
}
section.module p {
margin-bottom: 40px;
font-size: 16px;
font-weight: 300;
}
section.module p:last-child {
margin-bottom: 0;
}
section.module.content {
padding: 40px 0;
color: #090C02;
}
section.module.content#section1 {
background-color: #b23783;
}
section.module.content#section2 {
background-color: #3783b2;
}
section.module.parallax {
height: 600px;
background-position: 50% 50%;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
section.module.parallax h1 {
color: #8FD5A6;
font-size: 48px;
line-height: 600px;
font-weight: 700;
text-align: center;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
font-family: 'Julius Sans One', sans-serif;
}
section.module.parallax-1 {
background-image: url("https://i.imgur.com/YpRAOt3.jpg");
}
#media all and (min-width: 600px) {
section.module h2 {
font-size: 42px;
}
section.module p {
font-size: 20px;
}
section.module.parallax h1 {
font-size: 96px;
}
}
#media all and (min-width: 960px) {
section.module.parallax h1 {
font-size: 160px;
}
}
.header ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #1e1e20;
}
.header li {
float: right;
text-align: middle;
}
.header li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-family: 'Bitter', serif;
}
.header li:hover {
background-color: #fec10e;
color: black;
}
<header class="header">
<div>
<ul>
<li>Testr Co.</li>
<li>Home</li>
<li>About Us</li>
<li>Blog</li>
</ul>
</div>
</header>
<section class="module parallax parallax-1">
<div class="container">
<h1>Example</h1>
</div>
</section>
That's called "margin collapse." The defaut margin-top on the h1 is collapsing outside of the parent.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing
Parent and first/last child - If there is no border, padding, inline content, block_formatting_context created or clearance to separate the margin-top of a block from the margin-top of its first child block, or no border, padding, inline content, height, min-height, or max-height to separate the margin-bottom of a block from the margin-bottom of its last child, then those margins collapse. The collapsed margin ends up outside the parent.
section.module:last-child {
margin-bottom: 0;
}
section.module h2 {
font-family: "Roboto Slab", serif;
font-size: 30px;
}
section.module p {
margin-bottom: 40px;
font-size: 16px;
font-weight: 300;
}
section.module p:last-child {
margin-bottom: 0;
}
section.module.content {
padding: 40px 0;
color: #090C02;
}
section.module.content#section1 {
background-color: #b23783;
}
section.module.content#section2 {
background-color: #3783b2;
}
section.module.parallax {
height: 600px;
background-position: 50% 50%;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
section.module.parallax h1 {
color: #8FD5A6;
font-size: 48px;
line-height: 600px;
font-weight: 700;
text-align: center;
text-transform: uppercase;
text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
font-family: 'Julius Sans One', sans-serif;
margin-top: 0;
}
section.module.parallax-1 {
background-image: url("https://i.imgur.com/YpRAOt3.jpg");
}
#media all and (min-width: 600px) {
section.module h2 {
font-size: 42px;
}
section.module p {
font-size: 20px;
}
section.module.parallax h1 {
font-size: 96px;
}
}
#media all and (min-width: 960px) {
section.module.parallax h1 {
font-size: 160px;
}
}
.header ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #1e1e20;
}
.header li {
float: right;
text-align: middle;
}
.header li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-family: 'Bitter', serif;
}
.header li:hover {
background-color: #fec10e;
color: black;
}
<header class="header">
<div>
<ul>
<li>Testr Co.</li>
<li>Home</li>
<li>About Us</li>
<li>Blog</li>
</ul>
</div>
</header>
<section class="module parallax parallax-1">
<div class="container">
<h1>Example</h1>
</div>
</section>
After inspecting your code you can notice that the 'section.module.parallax h1' has a margin-top of 40px.
You need to use this (margin-top:0) to remove the gap.
There's white space between my background image and the top of the page, I am trying to complete the code academy course.
Thisis how it should look and here is my code:
html, body {
margin: 0;
}
h1, h2, a {
font-family: 'Oswald', sans-serif;
}
}
a:link {
background:black;
color:white;
text-transform:uppercase;
}
a:hover {
background:gold;
color:white;
text-transform:uppercase;
}
a:active {
background:black;
color:white;
text-transform:uppercase;
}
a:visited {
background:black;
color:white;
text-transform:uppercase;
}
p {
font-family: Helvetica, Arial, sans-serif;
}
.container {
width: 940px;
margin: 0 auto;
}
/* Main */
.main {
background: url("https://s3.amazonaws.com/codecademy-content/projects/move/bg.jpg") no-repeat center center;
background-size: cover;
height: 600px;
}
.main .container {
position:relative;
top:100px;
}
.main {
height: 600px;
}
.main h1 {
font-size: 150px;
}
.main p {
font-size: 18px;
}
/* Supporting */
.supporting {
text-align: center;
padding: 50px 0 80px;
}
.supporting .col {
float: left;
width: 28%;
padding: 10px;
}
.supporting h1,
.supporting h2 {
color: #ffa800;
font-size: 20px;
margin-bottom: 10px;
}
.clearfix {
clear: both;
}
.supporting p {
color: #efefef;
margin-bottom: 20px;
line-height: 20px;
font-size: 12px;
}
.supporting .btn {
background-color: #eee;
color: #1c1c1c;
font-size: 18px;
padding: 8px 30px;
text-decoration: none;
display: inline-block;
}
/* Feature */
.feature {
height: 600px;
}
.feature h1,
.feature h2 {
color: #fff;
font-size: 40px;
margin: 0;
padding:50px 0 0;
}
/* Footer */
.footer {
height: 600px;
}
.footer h1,
.footer h2 {
color: #fff;
font-size: 40px;
margin: 0 0 20px 0;
padding:50px 0 0;
}
.footer p {
color: #fff;
margin: 0 0 20px 0;
font-size: 18px;
}
#media (min-width:600px) {
.main h1 {
font-size: 200px;
}
.supporting .col {
width: 30%;
}
.supporting h2 {
font-size: 40px;
}
.supporting p {
font-size: 14px;
}
.feature h2 {
font-size: 60px;
}
}
<head>
<link href='https://fonts.googleapis.com/css?family=Oswald:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="main">
<div class="container">
<h1>Move</h1>
<p>Form healthy habits fitness blah</p>
Click Here
</div>
</div>
<div class="supporting">
<div class="container">
<div class="col">
<h2>Move</h2>
<p>Become more active by tracking your runs, rides, and walks.</p>
</div>
<div class="clearfix"></div>
</div>
</div>
<div class="feature">
<div class="container">
</div>
</div>
</body>
It's because you have margin's surrounding the text's.
Simply adding margin:0; to h1, h2, a as shown below will fix your problem.
h1, h2, a {
margin:0;
font-family: 'Oswald', sans-serif;
}
.main .container {
position:relative;
top:100px; // Remove
}
html, body {
margin: 0;
padding: 0; // Add
}
Try to change the following in your css file
body {
margin: -10px;
}
This reduces the whitespace from the top of the body.This might not be the actual fix.
I'm trying to get my background image to show at the top center of the page. The image works fine if I do:
<style>
body {
background: #FFF url('img/top_logo_blank_small.png') no-repeat fixed;
}
</style>
I can't seem to work out where I've gone wrong. There must be something I've managed to mess up, I just can't see it. Here is the CSS:
body {
font-family: 'Quattrocento Sans', helvetica, sans-serif;
background: #EEE url('img/top_logo_blank_small.png') no-repeat fixed;
color: #fff;
margin: 0;
padding: 0;
}
a {
color: black;
text-decoration: none;
}
/* Typography */
.header h1 {
position: absolute;
width:100%;
top: 50%;
margin-top: -20px;
text-align: center;
letter-spacing: 4px;
}
.header h1 em {
font-size: 1.200em;
font-style: normal;
}
h1 {
font-size: 2.2em;
color: #fff;
}
.content h2 {
font-size: 1.75em;
color: #fff;
letter-spacing: 4px;
text-align: center;
}
.content h2 em {
font-size: 1.2em;
font-style: normal;
}
.content h3 {
text-align: center;
font-size: 1.0em;
font-weight: normal;
color: #ede0ed;
letter-spacing: 1px;
margin-bottom: 25px;
}
.content h4 {
margin-top: 0;
text-align: center;
font-size: 0.8em;
font-weight: normal;
color: #ede0ed;
letter-spacing: 1px;
}
#banner p {
text-align: center;
}
/* Navigation */
#nav {
margin: 4px 4px 40px;
}
#nav ul {
padding: 0;
margin: auto;
list-style: none;
}
#nav ul li {
width: 50%;
color: #BBB;
float: left;
font-family: 'Cabin Sketch';
font-size: 1.75em;
text-align: center;
background: url(img/scribble_dark.png);
}
#nav ul li a {
display: block;
/*padding: 5px 20px;*/
}
#nav ul li a:hover {
background: #e0d0e0;
}
/* Content */
.container{
max-width: 720px;
margin: 50px auto 0;
background: #FFF url('img/top_logo_blank_small.png') no-repeat fixed 0 0;
}
.header {
position: relative;
background-color: #b88fb8;
border-top: 5px solid #ede0ed;
height: 75px;
}
.content {
background-color: #000;
padding: 15px;
margin-bottom: 10px;
}
div#about {
padding:25px;
min-height: 255px;
}
img#portrait {
float: left;
margin-right: 25px;
width: 256px;
height: 256px;
}
div#footer {
width: 100%;
max-width: 720px;
margin: auto;
color: black;
text-align: right;
padding: 0 10px;
font-size: 0.850em;
}
#media screen and (max-width: 650px) {
.container {
width: 90%;
max-width: none;
}
div#footer {
width: 90%;
}
}
Try to change your path for example:
background: #EEE url('../img/top_logo_blank_small.png') no-repeat fixed top;
Because you are in a subfolder, you have to go up of a level I think
Most likely your css file is in a different folder and therefore needs another path to the image file.
The common way is to put css in a separate css/* folder, so the path should be:
url('../img/top_logo_blank_small.png')
This CSS seems to work fine, are you certain that the image exists?
http://jsfiddle.net/ghsNR/
I've just tried it here and it works fine with an image from http://placehold.it/
body {
font-family: 'Quattrocento Sans', helvetica, sans-serif;
background: #EEE url('http://placehold.it/500x500') no-repeat fixed top;
color: white;
margin: 0px;
padding: 0px;
}
The most likely cause after observing this is that your CSS isn't actually locating your image correctly. I suggest using tools like the Chrome dev tools, or Firebug to inspect the absolute path that the browser is trying to use to load the image and moving forward from there.
Is the css in the same folder as the page? If you have a different folders, you need to change the URL accordingly.
Maybe change the URL to
'../img/top_logo_blank_small.png'