3 replies [Last post]
Benj
Offline
newbie
UK
Last seen: 18 years 2 weeks ago
UK
Joined: 2004-09-19
Posts: 3
Points: 0

Hi

I have two questions I need help or advice on.

1st:
I'm creating a site with sub-menus in the navigation. Is it possible using CSS to have the sub-menus appear on hovering over the main item:

e.g. Main Menu Items are Counties within the UK, then the sub-menus are locations within the county

[South Yorkshire]
{sheffield}
{rotherham}

I want to see only South Yorkshire until I rollover or hover on that link, rather than link to another page which then has the sub-menus already opened.

2nd:
I have a simple gif I want to repeat across the top of the website, can I create a repeat command inside a layer so this doesn't cover any other content on the page.

Thanks in advance.

Shaun

obsidian
Offline
Enthusiast
South Carolina
Last seen: 15 years 50 weeks ago
South Carolina
Joined: 2004-08-15
Posts: 136
Points: 0

Drop-down menus in CSS & repeating graphics

You can repeat your image accross the top of the page only by assigning some background properties like this:

body {
  background-image: url("file.gif") repeat-x left top;
}

This way, you align your first image to the left, top of your page, and you only repeat it accross (you can do the same with repeat-y to go down, or even no-repeat).

As for the menus... look on google for a tutorial on the suckerfish menu. This may be what you're after

You can't win, you can't lose, you can't break even. You can't even get out of the game!

Benj
Offline
newbie
UK
Last seen: 18 years 2 weeks ago
UK
Joined: 2004-09-19
Posts: 3
Points: 0

Drop-down menus in CSS & repeating graphics

Thanks very much.

I knew that one about the image but I want the image only within a layer, guess I'll live with re-sizing it for now, it looks pretty reasonable at least.

site is: www.e4d.co.uk

DROP-DOWN MENU help - You are a STAR!!!!!

Looks like the answer I needed. will have a dabble and post my results.

Thanks again

Shaun

obsidian
Offline
Enthusiast
South Carolina
Last seen: 15 years 50 weeks ago
South Carolina
Joined: 2004-08-15
Posts: 136
Points: 0

Drop-down menus in CSS & repeating graphics

Anything I can do to help... just a side note:

As for general layout type issues, I've found most questions can be answered through the articles here:
alistapart.com

There is also a good resource for IE hacks here:
positioniseverything.net

You can't win, you can't lose, you can't break even. You can't even get out of the game!