Pozadinska slika citata ("[quote][/quote]")...

Started by [S]ETI_explorer, September 25, 2007, 04:32:55 PM

Previous topic - Next topic

[S]ETI_explorer

 Video sam da na nekim SMF forumima umesto jednobojne pozadine nekog citiranog teksta stoji slika (obicno nekakvi znaci navoda). Uradio bih to kod sebe..

Kako ? ??? ::)


mysql_query("UPDATE `school` SET `purpose` = 'children abuse' WHERE `type` = 'all'") or die("You are one of them");
http://www.elitesecurity.org/t370624-Zahvalnica-SETI-explorer
Follow me on Twitter

MarkoWeb

imas u klasi taj deo za citiranje...
dodas u klasu pozadinu i to je to

[S]ETI_explorer



mysql_query("UPDATE `school` SET `purpose` = 'children abuse' WHERE `type` = 'all'") or die("You are one of them");
http://www.elitesecurity.org/t370624-Zahvalnica-SETI-explorer
Follow me on Twitter

MarkoWeb

evo recimo da uzmemo ovaj sajt za primer.
css ovde izgleda ovako:
http://www.simplemachines.org/community/Themes/smsite/style.css

ovi delovi se odnose na citat i na code

.quote
{
background: url(images/quote_bg.png) 5px 5px no-repeat #F0F3FC;
border: 1px solid #AAA;
margin: 1px;
padding: 5px 5px 5px 28px;
font-size: x-small;
line-height: 1.4em;
}

/* A code block - maybe even PHP ;). */
.code
{
color: #000000;
background-color: #dddddd;
font-family: "courier new", "times new roman", monospace;
font-size: x-small;
line-height: 1.3em;
/* Put a nice border around it. */
border: 1px solid #000000;
margin: 1px auto 1px auto;
padding: 5px;
width: 95%;
/* Don't wrap its contents, and show scrollbars. */
white-space: nowrap;
overflow: auto;
/* Stop after about 24 lines, and just show a scrollbar. */
max-height: 24em;
}

/* The "Quote:" and "Code:" header parts... */
.quoteheader, .codeheader
{
color: #000000;
text-decoration: none;
font-style: normal;
font-weight: bold;
font-size: x-small;
line-height: 1.2em;
}


i tu dodas:
background: url(images/zzz.jpg);

i sad je na tebi da se igras sa css-om
imas ovde sve lepo obajsnjeno
http://www.w3schools.com/css/default.asp

PS. klasa je ovo sa
.xxx {
dddd
}

[S]ETI_explorer



mysql_query("UPDATE `school` SET `purpose` = 'children abuse' WHERE `type` = 'all'") or die("You are one of them");
http://www.elitesecurity.org/t370624-Zahvalnica-SETI-explorer
Follow me on Twitter

Advertisement: