News:

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

Main Menu

Change profile background color

Started by Barlos, August 04, 2011, 02:37:25 AM

Previous topic - Next topic

Barlos

Hello,

How can I change the background color for profile, so, it is different to the post.

I found a similar post, but, it doesn't seem to work with SMF 2.0

Changing background color of profile area next to posts
http://www.simplemachines.org/community/index.php?topic=333882.0

Can anyone help?

Ricky.

#1
In main css file look for class  "poster" .

You need to modify that class..

Barlos

Hello Ricky.,

The default css file is at: \smf2_root\Themes\default\css\index.css

Orignal code I found as the following:

.poster
{
float: left;
width: 15em;
}


I added "background " to it.

.poster
{
float: left;
width: 15em;
background: #ff0000;
}


Then give me the following look :


What should I do to make the color all the way down? like your post?

Thanks for the hint.

Best Regards

Ricky.

Well, it may not cover whole. Still you can add :
min-height:200px

Barlos

Dear Ricky.

Can you post your css code?

Best Regards

Barlos

I tried and there is a problem.

If I use "min-height:200px;" then it occupied 200px of screen resolution space. If I set to 500px, it will  occupied 500px, even the post doesn't contain that long.

Please see the following displayed image.

Akyhne

You can do it the opposite way by painting the .post_wrapper (red), then the .postarea & ..moderatorbar blue.

I did it in one of my themes.

Something like:
.post_wrapper {
    background-color: red;
    float: left;
    width: 100%;
}
.postarea, .moderatorbar {
    background: blue;
    margin: 0 0 0 16em;
    overflow: hidden;
}

You also need to tweak paddings etc.

Barlos

Thankx Akyhne

I though the modified would only required one line...

Advertisement: