[SOLVED] image behind sub nav bar

This is a discussion on "[SOLVED] image behind sub nav bar" within the Web Page Design section. This forum, and the thread "[SOLVED] image behind sub nav bar are both part of the Design Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Oct 22nd, 2007, 17:35
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
[SOLVED] image behind sub nav bar

I am having issues putting a image behind the sub nav bar, I can make it work in Joomla but not in my web page, also I have no idea how to centralize the main header, every thing I try just puts it in a list in the centre, can some one please help?

http://www.lightex.co.uk/south/

in Joomla:
http://www.lightex.co.uk/south/cms/index.php
Attached Files
File Type: css layout(1).css (1.7 KB, 4 views)

Last edited by acrikey; Oct 22nd, 2007 at 17:37.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Oct 22nd, 2007, 18:16
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: image behind sub nav bar

You will need to use CSS for this... This thread explains it: http://www.webforumz.com/html-forum/...reamweaver.htm.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Oct 22nd, 2007, 20:58
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

It is using css hence the attached css file
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Oct 22nd, 2007, 21:02
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: image behind sub nav bar

Well why do you have this:
<img src="images/banner.png" alt="" width="145" height="599" />...

Surely this code added to your sub menu would work?
Code: Select all
background-image:url(images/banner.png);
backgoound-repeat:repeat-y;
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Oct 22nd, 2007, 21:08
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

It sits below the nav buttons though, not behind
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old Oct 22nd, 2007, 21:10
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: image behind sub nav bar

Do you want it to be below the nav buttons, or behind? You are confusing me. What i have showed you should put it behind....
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old Oct 22nd, 2007, 21:33
Highly Reputable Member
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

That's the way it looks for me

The code marc has supplied you would put in the div which holds the navigation

so in your case you need to add that css to the div with the id leftcolumn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old Oct 23rd, 2007, 10:19
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

That has done nothing, it is still sitting below even with the changes
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old Oct 23rd, 2007, 10:33
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: image behind sub nav bar

Can we see the updated code, please? You must be doing somthing wrong.... Mind you, it doesnt help the way you have named your classes.
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old Oct 23rd, 2007, 10:51
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

here it is
Attached Files
File Type: css layout(1).css (1.8 KB, 3 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old Oct 23rd, 2007, 11:01
Up'n'Coming Member
Join Date: Oct 2007
Location: 'HD' - Soon to be 'FY' home. ;)
Age: 32
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

According to this -

HTML: Select all
<div id="leftColumn"><p class="style32">Sub Menu.</p>
 <ul>
<li><a href="http://www.lightex.co.uk/south/kamchatka.html" target="_parent">Kamchatka</a><a href="#" title="Foo"></a></li>
<li><a href="http://www.lightex.co.uk/south/davos.html" target="_parent">DK Ride</a><a href="#" title="Foo"></a></li>
<li><a href="http://www.lightex.co.uk/south/runjumpfly.html" target="_parent">Run Jump Fly </a><a href="#" title="Foo"></a></li>
<li><a href="http://www.lightex.co.uk/south/school.html" target="_parent">School Talks</a><a href="#" title="Foo"></a></li>
 <li><a href="http://www.lightex.co.uk/south/sponsors.html" target="_parent">Sponsors</a></li>
 </ul>
 <p class="style33">IMAGE WILL BE UNDER SUB MENU</p>
 <p><img src="http://www.webforumz.com/images/banner.png" alt="" width="145" height="599" /></p>
 </div>
You are calling the image AFTER the end of the list.
You dont need to call the image at all in the HTML.
As Marc suggested you need is this in your CSS

Code: Select all
#leftcolumn {
background-image:images/banner.png;
background-repeat:no-repeat;
}
------------------

Edit -
Sorry you posted while I was posting.
Back in a mo......

Last edited by Nortus; Oct 23rd, 2007 at 11:03.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old Oct 23rd, 2007, 11:23
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

Ok it is in the css and removed from he html and the image has disappeared completely
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old Oct 23rd, 2007, 11:44
Up'n'Coming Member
Join Date: Oct 2007
Location: 'HD' - Soon to be 'FY' home. ;)
Age: 32
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

I made a boo boo -
should have put
Code: Select all
background-image:url(images/banner.png);
when I put
Code: Select all
background-image:images/banner.png;
Try adding
Code: Select all
../
before images/banner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old Oct 23rd, 2007, 11:44
Most Reputable Member
Join Date: May 2007
Location: UK
Age: 27
Posts: 1,111
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

Quote:
Originally Posted by acrikey View Post
Ok it is in the css and removed from he html and the image has disappeared completely
Did you specify a width and height in your CSS? The background image will be clipped by the element's dimensions; so if you apply it to a zero-area element, then it will "disappear".
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old Oct 28th, 2007, 23:18
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

ok I think I need to but how, sorry still learning css
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old Oct 28th, 2007, 23:18
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

Every time I think I have got it, I get stumped by another problem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old Oct 29th, 2007, 06:40
Marc's Avatar
Staff Manager

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Posts: 1,795
Thanks: 0
Thanked 17 Times in 17 Posts
Re: image behind sub nav bar

If you would like to go into Thread Tools -> Mark Thread as Solved - that would be great!

Cheers,
Marc
__________________
Marc
Staff Manager - Webforumz.com


Want to be a moderator? PM me.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old Oct 29th, 2007, 11:32
Reputable Member
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

but it's not solved yet
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote