Hi,
What is the best way to add a logo in the left side of the header and align the header banner to the right?
Thanks
Ray
Offline
Hi
use html and inline CSS in the header (option page), like <div style='float:left' ....
Offline
Hi raymond1965,
I do something similar and have a logo on the left of the header, an image across the middle and a shopping cart icon on the right.
I do this all in the Page Banner field within the configuration -> Options admin page.
My banner is like this:
<div style="background-color: #ffffff; width:100%; text-align:center; padding-top:10px; margin-top: 20px; min-width: 800px; vertical-align:top;"> <div style="width:200px; text-align:center; float:left;"> <a href="http://www.blahblah.co.uk/core/piwigo/index.php" title="Home Page"> <img height="125px" src="http://www.blahblah.co.uk/core/images/logo.png" alt="Logo" /> </a> </div> <div style="width:200px; height: 150px; text-align:center; float:right; position: relative"> <div style="position: absolute; bottom: 0%; right: 10%;"> <a href="http://www.blahblah.co.uk/core/piwigo/index.php?/page/Cart" title="View Basket"> <input type="text" id="cartContents"; style="width:100px; height:100%; border:0; background-color:white; text-align:right" value="" readonly> <img height="48px" style="vertical-align: bottom;" src="http://www.blahblah.co.uk/core/images/cart.png" alt="View Cart" /> </a> </div> </div> <div style="text-align:center; width:500px; margin: auto;"> <a href="http://www.......link to page" title="My Website"><img height="150" src="http://www.blahbalh.co.uk/core/images/mainimage.png" alt="Welcome To My Website" /> </a> </div> </div>
I hope that helps!
Last edited by flop25 (2013-09-11 11:13:52)
Offline
Hi,
I added the script to see what I get and it's works. (original)
Only I tried change things and I don't get it view correctly.
When I change to logo it's shows correct.
The only two things is the banner and the cart.
The cart should be deleted and the banner should stand there right side
Maybe you can help me out
The logo is w235px x h114px h and the banner is w800px x w200px
Thanks
Ray
Offline
I'll try Ramond! :)
So are you left with something like this:
<div style="background-color: #ffffff; width:100%; text-align:center; padding-top:10px; margin-top: 20px; min-width: 800px; vertical-align:top;">
<div style="width:235px; text-align:center; float:left;">
<a href="http://www.blahblah.co.uk/core/piwigo/index.php" title="Home Page">
<img height="114px" src="http://www.blahblah.co.uk/core/images/logo.png" alt="Logo" />
</a>
</div>
<div style="text-align:center; width:800px; margin: auto;">
<a href="http://www.......link to page" title="My Website"><img height="200" src="http://www.blahbalh.co.uk/core/images/mainimage.png" alt="Welcome To My Website" />
</a>
</div>
</div>
?
Do you want to send me your current code and I'll play about with it, also any screen shots so I can see your problem?
Offline
Post a direct link to your gallery, and also play with Firebug as stated in our doc
Offline
Good point flop25, firebug helps so much with being able to play with style and settings within a page so you can see the impact of changes. I used it to get my header working properly.
Offline
Hi
Thanks for your information
I solved it a different way.
I used css to add the logo (bg) and used a table the add the banners....
Offline
High Five!
Offline