Webseiten Hintergrund

Webseiten Hintergrund

Beitragvon Lolmaster880 » 18.08.2010, 11:59

Hi Leute
Gleich zum Anfang
Ich bin ein ziemlicher neuling also bitte seit nicht sauer wenn ich öfter nachfrag :lol:
Ich will einen Kumpel bei einer Webseite helfen
Die er vorgefertigt von einen anderen bekommen hat
Jetzt hab ich ein Problem mit den Hintergrund


Das ist jetzte der Html code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test-Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function IE(e) {
if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {

return false;
}
}
function NS(e) {
if (document.layers || (document.getElementById && !document.all)) {
if (e.which == "2" || e.which == "3") {

return false;
}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
//-->
</script>
<style type="text/css">
<!--
body { font-family:Tahoma; font-size:11px; text-decoration:none; margin: 0% 0% 0% 0%; }
.headline,.headline2,.headline3,.headline4,.headline5,.headline6,.headline7 { font-family:Tahoma; font-size:10px; font-style:none; color:white; text-decoration:none; }
.cont, TD { font-family:Tahoma; font-size:10px; font-style:none; color:#000000; text-decoration:none; }
a { font-family: Tahoma; color:#172F47; text-decoration: none; font-size:10px }
a:visited { font-family: Tahoma; color:#172F47; text-decoration: none; font-size:10px }
a:hover { font-family: Tahoma; color:#e12e76; text-decoration: underline; font-size:10px }
//-->
</style>
</head>
<body bgcolor="#020202" style="margin: 0 0 0 0;" background="http://img.webme.com/pic/s/softair-team-platoon/flecktarn.jpg">
<table width="100%" border="0" cellspacing="0" cellpadding="0">

<tr>
<td height="158" align="left" valign="top" class="edit_header_1">
<table width="1000" border="0" cellspacing="0" cellpadding="0">
Ich denke das reicht

Jetzt würde ich gerne das der Hintergrund sich nicht immer wieder kachelt
Ich habe schonmal in einen Forum gefragt
Das hat auch super geholfen
nur leider funktioniert in dieser Datei das nicht

<head>
<style type="text/css">
body {
background-image: url(hintergrund.jpg);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
color: #000000;
}
</style>
</head>
<body>
</body>
</html>


Ich denke es liegt an den code denn ich verwende
Funktioniert das bei der Anderen Webseite mit css nicht?
aber er wurde schon im Head verwendet :?:

Ich danke euch für jede Antwort :flucht:
Lolmaster880
neu hier
 
Beiträge: 10
Registriert: 10.07.2010, 09:40

Re: Webseiten Hintergrund

Beitragvon sejuma » 18.08.2010, 12:07

Normalerweise funktioniert das mit deinem CSS-Code.

Allerdings musst du dann auch im HTML-Teil diese entsprechenden Angaben löschen, da sie "hochrangiger" als der CSS-code sind:
Code: Alles auswählen
<body bgcolor="#020202" style="margin: 0 0 0 0;" background="http://img.webme.com/pic/s/softair-team-platoon/flecktarn.jpg">
Bild
sejuma
Vielposter
 
Beiträge: 787
Registriert: 15.07.2009, 17:46

Re: Webseiten Hintergrund

Beitragvon Lolmaster880 » 18.08.2010, 12:23

ich versteh deinen code nicht
wie soll ich den einfügen?
Lolmaster880
neu hier
 
Beiträge: 10
Registriert: 10.07.2010, 09:40

Re: Webseiten Hintergrund

Beitragvon Azra » 18.08.2010, 13:36

Nach </head> muss einfach nur <body> stehen.
Im <style>-Tag sieht die Beschreibung für den "body" dann so aus:
Code: Alles auswählen
body {
margin: 0;
font-family:Tahoma;
font-size:11px;
color: #020202;
text-decoration:none;
background-image: url(http://img.webme.com/pic/s/softair-team-platoon/flecktarn.jpg);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
}


Bitte auch einmal hier suchen wenn etwas in Erfahrung gebracht werden muss.
http://de.selfhtml.org/
<html>, <head>, <title>, <style>, <body> darf immer nur einmal verwendet werden. (Thema Grundgerüst)
“HTML is the language for describing the structure of Web pages.”
“CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts.”
Noch weitere Probleme? Kontakt über meine Webseite - simonduda.ch
Benutzeravatar
Azra
Stammuser
 
Beiträge: 422
Registriert: 04.02.2010, 08:36
Wohnort: (Alten)bochum

Re: Webseiten Hintergrund

Beitragvon Lolmaster880 » 18.08.2010, 13:42

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>test-seite</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
<!--
function IE(e) {
if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3")) {

return false;
}
}
function NS(e) {
if (document.layers || (document.getElementById && !document.all)) {
if (e.which == "2" || e.which == "3") {

return false;
}
}
}
document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false");
//-->
</script>
<style type="text/css">
<!--
body { font-family:Tahoma; font-size:11px; text-decoration:none; margin: 0% 0% 0% 0%; }
.headline,.headline2,.headline3,.headline4,.headline5,.headline6,.headline7 { font-family:Tahoma; font-size:10px; font-style:none; color:white; text-decoration:none; }
.cont, TD { font-family:Tahoma; font-size:10px; font-style:none; color:#000000; text-decoration:none; }
a { font-family: Tahoma; color:#172F47; text-decoration: none; font-size:10px }
a:visited { font-family: Tahoma; color:#172F47; text-decoration: none; font-size:10px }
a:hover { font-family: Tahoma; color:#e12e76; text-decoration: underline; font-size:10px }
//-->
</style>
</head>
<body {
margin: 0;
font-family:Tahoma;
font-size:11px;
color: #020202;
text-decoration:none;
background-image: url(http://www.google.de/imgres?imgurl=http ... CBwQ9QEwAQ);
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
}>
<table width="100%" border="0" cellspacing="0" cellpadding="0">

ich habs eztz genau so des funktioniert aber nicht wiso???
Lolmaster880
neu hier
 
Beiträge: 10
Registriert: 10.07.2010, 09:40

Re: Webseiten Hintergrund

Beitragvon Azra » 18.08.2010, 13:47

Wenn du dir keine Mühe gibst geb ich mir auch keine :wink:
Lesen, genau lesen. Du wirst eine Ähnlichkeit im Code deines Kollegen finden wenn du ihn mit dem vergleichst den ich hier gepostet habe. Ersetze diesen.

Hau dir selber bitte auf die Finger :|
“HTML is the language for describing the structure of Web pages.”
“CSS is the language for describing the presentation of Web pages, including colors, layout, and fonts.”
Noch weitere Probleme? Kontakt über meine Webseite - simonduda.ch
Benutzeravatar
Azra
Stammuser
 
Beiträge: 422
Registriert: 04.02.2010, 08:36
Wohnort: (Alten)bochum

Re: Webseiten Hintergrund

Beitragvon Lolmaster880 » 18.08.2010, 14:23

sry
jetzt geht es
ich danke dier :lol:
Lolmaster880
neu hier
 
Beiträge: 10
Registriert: 10.07.2010, 09:40


Moderatoren: Laus, Moderatoren

Ähnliche Beiträge zu "Webseiten Hintergrund"

Zurück zu: CSS für Anfänger

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron