Banner shifting?
Permalink
My site iswww.www.warden-securities.com/home/...
I added a nice banner to the top beside the menu.
When I am not logged in. It looks great but once logged in, and the top menu appears. The page shifts down but the banner will not.
I added the following code just within the <body> tag
Maybe not pretty but it works.
I assume I need to place the code elsewhere to have it move down?
Could someone help?
Thank you.
I added a nice banner to the top beside the menu.
When I am not logged in. It looks great but once logged in, and the top menu appears. The page shifts down but the banner will not.
I added the following code just within the <body> tag
in the header file <div style="position: absolute; width: 100%; height: 118px; z-index: 1; left: 10px; top: 5px" id="layer1" align="center"> <table border="0" width="800" cellspacing="0" cellpadding="0"> <tr> <td> <img border="0" src="http://www.warden-securities.com/Logo.png" width="340" height="90"></td> </tr> </table> </div>
Maybe not pretty but it works.
I assume I need to place the code elsewhere to have it move down?
Could someone help?
Thank you.
Did not work?
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <!-- Site Header Content //--> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('minimalist_base.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('minimalist_styles.css')?>" /> <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('typography.css')?>" /> <?php Loader::element('header_required'); ?> </head> <body> <div id="page" class="<?php echo ($liquid)?'liquid':''?>"> <div id="headerSpacer"></div> <div style="position: absolute; width: 100%; height: 118px; z-index: 1; left: 10px; top: 5px" id="layer1" align="center">
Viewing 15 lines of 58 lines. View entire code block.
Oh… and send me one of those guns! ;-0
Haha well they cost a bit to much. but would love to :)
Thanks for the help
Thanks for the help
you’ve got the logo inside a table. Any reason for that. Tables have their own rules and that might be causing trouble. I can't see your block in question anymore either.
need to expand code block. i copied the whole page.
It's in a table to I can adjust off centre. as the whole page is centred I am unable to have the logo stay where it's supposed to be by scaling it from the right or left. as it would move depending on page width.
As far as I know you cant allign a div from centre?
It's in a table to I can adjust off centre. as the whole page is centred I am unable to have the logo stay where it's supposed to be by scaling it from the right or left. as it would move depending on page width.
As far as I know you cant allign a div from centre?
If you want to PM me an admin login I can have a look.
<div id="headerSpacer">
</div>