Customizing SMF > Graphics and Templates

How to Move Author Profile in Post Page to Right Side

(1/1)

humbleworld:
Hello Friends,

I need a little help. Which part of style.css or display.template.php should I edit so that the author profile in a post page would be transferred to right side. Like this forum, the default alignment is left.

Thanks in advance.

Marcus Forsberg:
You'd have to edit a few classes in index.css.

Find


--- Code: ---.poster
{
float: left;
width: 15em;
}
--- End code ---

Replace with:


--- Code: ---.poster
{
float: right;
width: 15em;
}
--- End code ---

Find


--- Code: ---.postarea, .moderatorbar
{
margin: 0 0 0 16em;
}
--- End code ---

Replace with:


--- Code: ---.postarea, .moderatorbar
{
margin: 0 16em 0 0;
}
--- End code ---

Find


--- Code: ---.moderatorbar
{
clear: right;
}
--- End code ---

Replace with:


--- Code: ---.moderatorbar
{
clear: left;
}
--- End code ---

Find


--- Code: ---.post
{
margin-top: 0.5em;
clear: right;
}
--- End code ---

Replace with:


--- Code: ---.post
{
margin-top: 0.5em;
clear: left;
}
--- End code ---

Find


--- Code: ---.inner
{
padding: 1em 1em 2px 0;
margin: 0 1em 0 0;
border-top: 1px solid #99a;
}
--- End code ---

Replace with:


--- Code: ---.inner
{
padding: 1em 0 2px 1em;
margin: 0 1em 0 0;
border-top: 1px solid #99a;
}
--- End code ---

Find


--- Code: ---.messageicon
{
float: left;
margin: 0 0.5em 0 0;
}
--- End code ---

Replace with:


--- Code: ---.messageicon
{
float: left;
margin: 0 0 0 0.5em;
}
--- End code ---

It doesn't look perfect so you'll probably have to fiddle around a bit more with the CSS, but there's the basics for you. :)

Also, this would be better off in Graphics and Templates!

Doctor Deejay:
Moved :)

humbleworld:
Thanks Marcus. I wish there is a perfect code for this. What you gave, as you said, is not yet perfect. I am not familiar with CSS so I can't change anything that is not my expertise. I might mess up the whole site.

lifeguard81:
Is it also possible, to put this on top like VB and MYBB?

Navigation

[0] Message Index

Go to full version