So I’ve begun to dabble in the world of web design. I’ve got basic HTML and CSS knowledge and I’m working on chopping up my first PSD that a friend provided me with to convert to a site.
I’m trying to figure out the best way to layout the background and main images for my site.
My main image is 960px wide.
Below that is the orange nav bar.
Below that is an image with will fall behind the text, which then fades to solid black should the text go down that far.
I want the left to extend black and orange as in the image for large monitors, I want the right to extend black, orange and magnolia to the right.
I’m thinking to have a primarily black backround as a base. Then I thought I could have a vertical slice of orange on black that repeats to the left on the x axis and a vertical slice of magnolia and orange on the right that repeats to the right on the x axis. Is that possible and doable or would you recommend another approach?
Edit: Or is it better to have complete solid black, then a vertical magnolia strip on the right repeated on x axis. Then have the orange nav bar span the whole page and always center the links on top of the rest?
This is all very easy, except for the magnolia background top right. Do you really have to have that? It makes things look a bit lop-sided, to my eye, and is not so straightforward to do—meaning that even if it works on modern desktop browsers, you are likely to have problems in older browsers and other media.,
Thanks for the reply Ralph, here’s a pic of the final mockup.
The reason for the magnolia is the due to the edge of the main image as you can see here. We thought it would be nice to continue it off to the right instead of fading to black like on the left (although that would obviously make life so much easier)
You are probably just best off using a very wide background image for the top section to get the magnolia color to the right. Here’s a basic example of how to get started:
I’ve been working on it with my buddy and we’re nearly there now I think, but can’t quite get the nav bar to centralise properly at all resolutions. It works great at 960px and above how we’ve done it, but below that it sticks and looks weird, I think due to the way it’s been padded and we can’t figure it out.
Right. So we managed to finish off the HTML and my partner in crime has managed to convert it to a WordPress site.
It’s all working brilliantly in WP - apart from the fact we’re kind stuck on the drop down menus and using the drop down menu plugin we’re currently using there’s about 700 lines of css code relating to it and it buggers up the size/colours/styling of the nav bar
Are you able to help us out with how we might best implement the drop down menu in CSS please?
It depends on how you need the dropdown to work, but I would advise not using a plugin for this sort of thing, as they are usually not very good, add in far too much code, and mess with your design (as you noted). The code for a simple CSS dropdown is very simple, such as here:
For a more sophisticated dropdown, you’d best go with the Suckerfish method, or, if you need a bit of JS niceness, go for Superfish (which is just Suckerfish on 'roids). (I haven’t linked to Suckerfish or Superfish as they are easy to Google.)
It’s all pretty good, apart from the fact that the spacing is off now, and I’m not sure how to vary it between each item in the top level list?
Another questions, I’ve currently got the secondary list set to the width of the longest piece of text which is ‘The Legion of Doom’, is there a way to get this to vary to just the longest entry in each individual column instead of all of them?