I have searched google and not found exactly what I need so I have come here hoping that someone with css knowledge can help me.
I am trying to create a horizontal menu with css using jpg images rather than text.
the page consists of a header, buttons underneath (4 buttons), under this the content area and under that the footer. So to many here its a straight forward layout.
I pressume all this should take place in a container div so it can be centered on screen.
My question is this, If I were to upload a file with the graphic images in, would you take a look and see if it would be possible to put it together so I can see what is going on? I can do vertical menus ok - but this has me stuck
The file has been downloaded 3 times so yeah perhaps one of the other guys is looking into it. All I can say is thanks and I will try and help someone out on one of the forums as an extra thanks to the community - I have in the past made up plenty of fla files to help others here, so i don’t feel too bad about asking
you do it this way because of accessibility. anyone with style sheets turned off can still read the nav easily (this includes screen readers). this is just an extension of content vs. presentation. really, those nav images aren’t the content, just the presentation. so the images don’t need to be present in the html, just the css.
i haven’t actually tried this with the images provided, so you might have to compensate for filenames, paths, width, height. but the concept works.
http://www.alvit.de/handbook/#navmenus there’s a whole list of navs and techiniques there, I’ve viewed all the links at one point and time and I know some of them use images.
holy bijesus. I just looked at the link by simp. I skimmed over his post thinking he posted listomatic. then i actually looked at it. nice link. bookmarked
thanks for that hkl. I can sort of get that far. Its just getting the images to work thats causing the problem and aligning them on the page is will be tough. But thank you for your help
i’m now going to look at the new code sent in by bwh2.
btw hkl, you should check how that renders in IE7.
SM, my code doesn’t try to center anything or include the header. i was mostly shooting at the nav. anyway, you will want to throw everything into a container and center the container. if i get a chance later i can show you what i mean.
thanks man - yeah the buttons show perfect now. This is my plan now, build the page with html and css using simple divs for layout - see how far I get and then possibly write back when i hit a problem - the next time i write back i am hoping that the fix ups will be pretty straight forward
ps yeah i’ve contained stuff in a main div in the past and centered that ok.
oh no ankou, i’m still working on this and believe me all help is needed - I still cant put this thing together. been sat here 5 hours now and still nowhere near
I think I’m almost there but it is still wrong - its nearly right in firefox but messes up completely in IE. This is the last post i’m going to make about this because you must be bored with it now and its driving me crazy. hours and hours of work.
I cant believe this is so difficult. I see these horizontal menus all the time on css based layouts.
thanks once again and here is the file if you’re curious
Not perfect, but it works. I don’t have time to really look at the code right now to check everything or to break all the code down to make sure everything is fine, but it gets you a step closer (if you’re not already).
You were using id=“nav” twice in your HTML. I corrected that and put a comment in the HTML code for you. I’ll look at this more later tonight when I get a bit more time.