Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Different color on poster info

Aloittaja Dylert, marraskuu 03, 2013, 06:17:11 AP

« edellinen - seuraava »

Dylert

Hello! I'm trying to make another color for the profile/poster area in a post. When I change the background color it changes for both the whole post including the user area. Is there a way to fix this?

See attachment.

Here's my css code:

#forumposts .windowbg, #forumposts .windowbg2
{
border: 1px solid #979798;
border-radius: 12px 12px 12px 12px;;
background-color: #F8F8F8;
}


Oldiesmann

You can fix that by editing Display.template.php for the theme you're using (or the default theme if the one you're using doesn't have that file).
Michael Eshom
Christian Metal Fans

Dylert

Thank you, Oldiesman! What should I edit in Display.template.php?

Sir Osis of Liver




// Show information about the poster of this message.
echo '
<div class="poster" style="background: red;">
<h4>';


When in Emor, do as the Snamors.
                              - D. Lister

far2slow

or you can change it in the css

find

.poster{

add

background-color: #FF0000;  or what ever color you want

doing it this way will change the poster background color in pms also. if you don't want to do that then you can just add another class

<div class="poster posterbg">

then add this to your css

.postertbg{
background-color: #FF0000;
}

sorry Krash i just always would rather use css to do the style where i can.

emanuele

You don't have to add another class to change the topics and not the PMs, you can just use:
#forumposts .poster


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

far2slow

Lainaus käyttäjältä: emanuele - marraskuu 03, 2013, 03:34:08 IP
You don't have to add another class to change the topics and not the PMs, you can just use:
#forumposts .poster

good point emanuele  :) 

Dylert

Thanks lot for the help, guys! New collor on profile field and a nice frame is made: http://hellasforum.net/index.php?topic=8213.0 :) :)

Advertisement: