The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

CSS DOESN"T EFFECT THE HTML

View previous topic View next topic Go down

Solved CSS DOESN"T EFFECT THE HTML

Post by DeathDunk98* on December 14th 2014, 9:18 pm

I have this html code I want to add to a html page:
Code:
<!doctype html>
<html>
            <head>
            <title>Artikujt e ditės> </title>
         <link type="text/css" rel="stylesheet" href="style.css" />
            </head>
            <body>
<div id="wrapper">
<div id="header">
<div id="logo"> Artikujt e ditės</div>
</div>

<div id="content">
<div class="post">
<h1>Si u krijua Adema nga te gjitha ngjyrat e tokes</h1>
<p><b>Njeriu i pare, ademi (alejhi selam) u krijua nga te gjitha ngjyrat e tokes</b>
<br />
<br />
Nga sahabiu Ebu Musa El-Esharij transmetohet se Pejgamberi alejhis selam ka thene:
<br />
"Vertete Allahu i lartesuar e krijoi Ademin alejhis selam nga nje kapje (grusht, marrje) qe e kapi(morri) nga e tere toka; andaj bijte e Ademit dolen simbas llojit te tokes, ka prej tyre te kuq, te zinje, te bardhe, te lehte e te vrazhdte, ne mesin e tyre te keqinje dhe te mire".
<br />
E ka permendur Hattabiu (rahimehullah) ne El-Ezleh fq.155.
Muhadithi Albani rahimehullah e ka saktesuar ne Sahih Sunen Ebi Davud (4693).
<br />
<br />
<i><b>Burimi: www.mjeksiaislame.com</i></b>

</p>
</div>

<div class="post">
<h1>Allahu dėgjon dhe shikon</h1>
<p><b>Argument ėshtė fjala e Tij:
<br />
<br />
<b>"Allahu i ka dėgjuar fjalėt e asaj, qė diskutoi me ty pėr burrin e vet dhe iu ankua Atij. Allahu e dėgjoi bisedėn tuaj, sepse Ai dėgjon dhe sheh gjithēka."</b>(Muxhadileh 1)
<br />
<br />
<b>"Sigurisht qė Allahu e ka dėgjuar fjalėn e atyre tė cilėt e thanė: "Allahu ėshtė i varfėr, kurse ne jemi tė pasur."</b>(Al Imran 181)
<br />
<br />
<b>"Vallė, a mos kujtojnė ata se Ne nuk e dėgjojmė fjalėt e tyre tinėzare dhe bisedat e tyre tė fshehta?
<br />
<br />
"Pa dyshim, Ne dėgjojmė, ndėrsa tė dėrguarit Tanė (engjėj) qė janė pranė tyre, shėnojnė."</b> (Zuhruf 80)
<br />
<br />
<b>"Unė jam me ju, dėgjoj dhe shoh."</b>(Ta Ha 46)
<br />
<br />
<i>Burimi: www.mjeksiaislame.com</i>
</div>
</div>
            </body>

</html>
 
and I have this css that when I add it to CSS STYLESHEET it messes the forum and it doesn't effect this html that I created. Can you please help me fix this css as it has to be and to affect this html.
Code:
{
margins: 0px;
padding: 0px;
}
body {
font-size: 14px;
font-color: 000000;
}
#wrapper {
width: 800px;
margin-left: auto;
margin-right: auto;
}

#header {
background-color: #CCCCCC;
width: 100%;
margin-bottom: 10px;
}
#logo {
text-shadow: 1px 1px 1px #eeeeee;
color: #ffffff;
font-size: 36px;
margin: 10px 0px 0px 10px;
}

.post {
background-color: #ffffff;
padding: 5px;
border: 1px solid #cccccc;
margin-bottom: 5px;
}

h1 {
font-size: 18px;
}

.post p {
margin-bottom: 10px;
}
.post p:last-child {
margin-bottom: 0px;
}

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: CSS DOESN"T EFFECT THE HTML

Post by Ange Tuteur on December 14th 2014, 9:48 pm

Hello @Deathdunk,

You must add the CSS to the HTML page as an inline stylesheet. Paste this in the <head> element of your HTML page :
Code:
<style type="text/css">
{
margins: 0px;
padding: 0px;
}
body {
font-size: 14px;
font-color: 000000;
}
#wrapper {
width: 800px;
margin-left: auto;
margin-right: auto;
}

#header {
background-color: #CCCCCC;
width: 100%;
margin-bottom: 10px;
}
#logo {
text-shadow: 1px 1px 1px #eeeeee;
color: #ffffff;
font-size: 36px;
margin: 10px 0px 0px 10px;
}

.post {
background-color: #ffffff;
padding: 5px;
border: 1px solid #cccccc;
margin-bottom: 5px;
}

h1 {
font-size: 18px;
}

.post p {
margin-bottom: 10px;
}
.post p:last-child {
margin-bottom: 0px;
}
</style>

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: CSS DOESN"T EFFECT THE HTML

Post by DeathDunk98* on December 14th 2014, 10:00 pm

This topic is solved.

DeathDunk98*
Forumember

Posts : 479
Reputation : 3
Language : Shqip

Back to top Go down

Solved Re: CSS DOESN"T EFFECT THE HTML

Post by Ange Tuteur on December 14th 2014, 10:01 pm

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum