Advertisement:

Author Topic: I need help with footer and header  (Read 199 times)

Online Arskrigitsioniets

  • Semi-Newbie
  • *
  • Posts: 25
I need help with footer and header
« on: July 04, 2018, 09:42:07 AM »
I have this in my smf 2.0.15 footer and I want to do normal footer.



My code is:
Code: [Select]
/* The footer wih copyright links etc. */
#footer_section
{
text-align: center;
background: url(../images/theme/main_block.png) no-repeat 0 -820px;
padding-left: 20px;
}
#footer_section span.smalltext
{
font-size: 100%;
}
#footer_section div.frame
{
background: url(../images/theme/main_block.png) no-repeat 100% -820px;
display: block;
padding: 60px 0 0 0;

If I set padding-left: 0px, I get this:

As you see, there is no round borders in the left.

Absolutely the same problem is in the header:


How to make normally textured footer?
« Last Edit: July 04, 2018, 10:42:21 AM by Arskrigitsioniets »

Offline Sir Osis of Liver

  • SMF Hero
  • ******
  • Posts: 7,939
  • 'Tis the gift to be simple (duh)
Re: I need help with footer and header
« Reply #1 on: July 04, 2018, 12:23:36 PM »
What have you done to main_block.png?

Online Arskrigitsioniets

  • Semi-Newbie
  • *
  • Posts: 25
Re: I need help with footer and header
« Reply #2 on: July 04, 2018, 12:33:25 PM »

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 68,793
    • Arantor on GitHub
Re: I need help with footer and header
« Reply #3 on: July 04, 2018, 01:47:48 PM »
You basically can't without a lot of messing about with the CSS - the CSS in the default theme is built by overlapping most of the image on top of the rest of the image, as you're discovering now, as it was the only way to do this in IE6 when it was originally built.

The padding part exposes the left edge of the image, while the rest of it is aligned from the right. There isn't a good way to fix this in Curve.
To assume is to hope that those who came before had the presence of mind and capacity to implement the dreams of those who would come after.

Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

Online Arskrigitsioniets

  • Semi-Newbie
  • *
  • Posts: 25
Re: I need help with footer and header
« Reply #4 on: July 04, 2018, 03:09:28 PM »
Thanks for responses.

I just have downloaded a theme "Flexive" and it has solved my problem - the teme has set header image in admin panel that may be changed  :)