[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.



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

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 22nd, 2007, 17:35
acrikey's Avatar
SuperMember

SuperMember
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.
Reply With Quote

  #2 (permalink)  
Old Oct 22nd, 2007, 18:16
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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.
Reply With Quote
  #3 (permalink)  
Old Oct 22nd, 2007, 20:58
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #4 (permalink)  
Old Oct 22nd, 2007, 21:02
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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;
Reply With Quote
  #5 (permalink)  
Old Oct 22nd, 2007, 21:08
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #6 (permalink)  
Old Oct 22nd, 2007, 21:10
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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....
Reply With Quote
  #7 (permalink)  
Old Oct 22nd, 2007, 21:33
AdRock's Avatar
SuperMember

SuperMember
Join Date: Jul 2006
Location: Devon, England
Posts: 565
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to AdRock
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
Reply With Quote
  #8 (permalink)  
Old Oct 23rd, 2007, 10:19
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #9 (permalink)  
Old Oct 23rd, 2007, 10:33
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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.
Reply With Quote
  #10 (permalink)  
Old Oct 23rd, 2007, 10:51
acrikey's Avatar
SuperMember

SuperMember
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)
Reply With Quote
  #11 (permalink)  
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.
Reply With Quote
  #12 (permalink)  
Old Oct 23rd, 2007, 11:23
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #13 (permalink)  
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
Reply With Quote
  #14 (permalink)  
Old Oct 23rd, 2007, 11:44
SuperMember

SuperMember
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".
Reply With Quote
  #15 (permalink)  
Old Oct 28th, 2007, 23:18
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #16 (permalink)  
Old Oct 28th, 2007, 23:18
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #17 (permalink)  
Old Oct 29th, 2007, 06:40
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
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
Reply With Quote
  #18 (permalink)  
Old Oct 29th, 2007, 11:32
acrikey's Avatar
SuperMember

SuperMember
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
Reply With Quote
  #19 (permalink)  
Old Oct 29th, 2007, 11:38
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

Ok Acrikey..where are you at in this problem now?
Reply With Quote
  #20 (permalink)  
Old Oct 29th, 2007, 16:05
acrikey's Avatar
SuperMember

SuperMember
Join Date: Mar 2007
Location: UK
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
Re: image behind sub nav bar

I have done all the changes to the css, but the image is not there any more, there was suggestions to change it to a zero-area element but I don't know how to do it, I only know how to do it in html, but it's not in html it's in css.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how do i put an image using asp.net with VB hk33 ASP.NET Forum 5 Jan 3rd, 2008 18:51
[SOLVED] JS Image viewer Graisbeck JavaScript Forum 5 Jan 2nd, 2008 01:47
[SOLVED] CSS image gallery Graisbeck Web Page Design 6 Dec 18th, 2007 08:07
[SOLVED] multiple image rollover not restoring image snappy JavaScript Forum 4 Nov 5th, 2007 14:38
[SOLVED] image Anonymous User Web Page Design 3 Nov 6th, 2004 19:41


All times are GMT. The time now is 19:38.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43