Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hey guys,
i startet to recreate my homepage with the Danland Theme and its really great.
Now i resized the Banner but unfortunately its not centered any more.
Can somebody help me, how to fix this?
With friendly regrets
Sebastian
Comment | File | Size | Author |
---|---|---|---|
Bildschirmfoto.png | 421.32 KB | KampfKarotte |
Comments
Comment #1
selvakumar CreditAttribution: selvakumar commentedopen your danland/style.css- Goto 484 line
Add one more style attribute - text-align: center;
Old style:
#preface-wrapper {
margin:0 auto;
width:950px;
}
New one:
#preface-wrapper {
margin:0 auto;
text-align:center;
width:950px;
}
Comment #2
KampfKarotte CreditAttribution: KampfKarotte commentedHey selvakumar,
i tried it but didnt work. Banner is still on the left side.
But thanks for your help.
Sebastian
Comment #3
noble CreditAttribution: noble commentedIt's not preface-wrapper you have to change. You need to modify #slideshow-wrapper.
I posted my local.css here: http://nopaste.php-q.net/312986
And you have to change the width of the images to 100% in page.tpl.php
It makes the layout "liquid", so it fits all browser sizes from 800x600 to 1680x1050.
I tested it only with one sidebar so I don't know what happens with a 3-column layout.
You have to reload the page after resizing the browser window to get the right size for the slideshow image.
Feel free to use this as a base.
regards, noble
Comment #4
danpros CreditAttribution: danpros commentedHi,
Are you already try to clear the cache? and what change you have done to the theme?
Comment #5
KampfKarotte CreditAttribution: KampfKarotte commentedi managed it; thank you for your time and help; closed;