Achtergrond foetsie met FF

Status
Niet open voor verdere reacties.

Eagle Creek

Verenigingslid
Lid geworden
3 okt 2002
Berichten
26.336
Code:
<link href="../stylesheet.css" rel="stylesheet" type="text/css">

In de CSS:

Code:
<!--
body {
	background: url('images/background.jpg') no-repeat center; 
	color: #000080; 
	font-weight: normal; 
	font-style: normal; 
	font-size: 10pt; 
	font-family: Arial
	}

Maar noppes te zien in FF ?
 
Staat dit in je code??
<!--
Dit geeft aan dat er een commentaar begint.
 
Code:
<style type="text/css">

<!--
body {
	background: url('images/background.jpg') no-repeat center; 
	color: #000080; 
	font-weight: normal; 
	font-style: normal; 
	font-size: 10pt; 
	font-family: Arial
	}	

p {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

div.disabled {
	font-family: Arial;
	font-size: 10pt;
	color: #C0C0C0;
	font-weight: normal;
	font-style: normal
	}

ul {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

li {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

tr {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

td {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

h1 {
	font-family: Arial;
	font-size: 14pt; color: #000080;
	font-weight: bold;
	font-style: normal
	}

h2 {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: bold;
	font-style: normal
	}

h3 {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: italic
	}

div.fakelink {
	font-family: Arial;
	color: #000080;
	text-decoration: underline;
	cursor: hand
	}

a:link {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}

a:active {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}

a:visited {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}

a:hover {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}
</style>

In IE werkt het wel zo.
Zonder <!-- werkt het niet in IE, noch in FF.
 
Code:
<style type="text/css">

<!--
body {
	background: url('images/background.jpg') no-repeat center; 
	color: #000080; 
	font-weight: normal; 
	font-style: normal; 
	font-size: 10pt; 
	font-family: Arial
	}	

p {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

div.disabled {
	font-family: Arial;
	font-size: 10pt;
	color: #C0C0C0;
	font-weight: normal;
	font-style: normal
	}

ul {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

li {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

tr {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

td {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: normal
	}

h1 {
	font-family: Arial;
	font-size: 14pt; color: #000080;
	font-weight: bold;
	font-style: normal
	}

h2 {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: bold;
	font-style: normal
	}

h3 {
	font-family: Arial;
	font-size: 10pt;
	color: #000080;
	font-weight: normal;
	font-style: italic
	}

div.fakelink {
	font-family: Arial;
	color: #000080;
	text-decoration: underline;
	cursor: hand
	}

a:link {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}

a:active {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}

a:visited {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}

a:hover {
	font-family: Arial;
	color: #000080;
	text-decoration: underline
	}
</style>

In IE werkt het wel zo.
Zonder <!-- werkt het ook niet in FF.
 
In je eerste bericht zet je dat er gelinkt wordt naar een stylesheet.
Als je linkt naar een stylesheet dan moet je in dat externe sheet
<style type="text/css"></style>
niet meer gebruiken.
Dus je begint dat sheet met
etc.
 
er horen geen aanhalingstekens bij je background url.

Haal die eens weg.

t.
 
Hij doet het nu.

Als de boel weer is ingestort horen jullie mij weer :D.
 
Nog ff een toevoeging, dit:
Code:
body {
	background: url('images/background.jpg') no-repeat center;
Hoort eiglijk:
Code:
body {
	background: url(images/background.jpg); background-repeat: no-repeat; background-position: 50%,50%
Te zijn :)
 
Owh...

Het was eerst 'no-repeat fixed right top;' dus dat heb ik er zelf van gemaakt.

Maar als dat beter is gaan we dat doen natuurlijk:thumb:.
 
je mag het ook afkorten hoor.., is geen enkel probleem.
Wel is 50% 50% wat anders als center.

t.
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan