XF 2.2 How to move logo within the width of the screen (not the forum width)

sam2019

Member
I am trying to move the logo further to the left outside the boundaries of the forum itself.
How is that possible.

 
Like this?
logo.l1jpg.webp

Place in extra.less
Code:
// Header Padding Inclding Logo
.p-header-content
{
    padding: 0px 0px;
}

// Move Logo Over to Left by 20px Which is Borer Width - adjust if needed
.p-header-logo {
    position: relative;
    left: -20px;
}
 
I would also add background-size: cover; to your header background CSS, so it looks good on larger screens otherwise it repeats and looks messy:
Code:
.p-header {
    color: #dedede;
    background: #142734 url(data/assets/style_properties/header-road-1900-72-cropped.png);
    height: 211px;
    background-size: cover;
}
If you're adding this to your extra.less and the full code is not in there (i.e. you customized it) you can strip everything out and just put this in your extra.less file:
Code:
.p-header {
    background-size: cover;
}
 
I would use an absolute position as I think it might work better with different widths of browser window:

Code:
.p-header-logo

{position:absolute;
left:0px;}

or whatever px to suit
@sam2019 your logo is nice but doesn't work on mobiles too well

EDIT: Oops - typo fixed
 
Last edited:
Top Bottom