NOTE: I was not able to paste all the code as I was not able to understand the directions on pasting code in a post. The website is www.ZimbaCo.com/indexr.shtml and style sheet is /style.css – thank you so much.
My very first responsive site. In order to really learn the
“nuts and bolts” I have foregone using wordpress or the various grid based
templates in favor of creating my template from the ground up. For my first
project I am working on a new client website setup in the “old fashioned” way
of 960px header with 25/65% vertical side menu/content area then footer below.
I’m making this first project simple, hence my not using a
“collapsing” menu (one that disappears under 480px resolution and becomes a
toggle, etc.). I also want this first template to emulate the way 85% of my
sites are – full width header, menu on left, content on right, footer below. I
will evolve, but I think using a familiar layout will serve my learning curve
first.
I’m using media queries and have labeled my css and div
beginning and endings as best I can
I’m using lists for menu, block style
I’m using a container div, which contains the header, menu,
content and footer. I’m using % vs. fixed width for fluidity but I’m keeping
the percentages even (i.e. 25% for menu vs. 23.45655555231%)
Some issues I’d love to get advice on are:
I originally had the menu be vertical left aligned down to
480px, then have the entire sidebar/menu float to top ABOVE content at 479 and
below. I also had the contact info box, header and footer disappear. (Yes, I
will have to add the contact info in there somewhere…maybe call or email
buttons later…)
I am probably over complicating but I noticed that between
480 and 760 pixels the left menu buttons got a LITTLE too squashed, so I
decided to try my hand at making them display inline under the header using a
min/max media query, so between 480 and 760 pixels, the menu would become
horizontal, over the content, using percentage width (so I’ll have to change it
when I add or remove menu items…a little sloppy). The problem is that I cannot
quite get them right. I am using display: table and display: table cell
properties but it’s not perfect. The mousover hover color is not covering 100%
of the cells in cells where there is no word wrapping. (for example, home and
our services only changes color on hover if you mouseover top 75% of the button
while “Meet the Staff” is 100% active.
Although I’ve spec’d the sidebar to be up top, there seems
to be a light blue margin to left for part of the scale from 760 to 480.
Sidebar div is the only one with this color so I’m sure it is the sidebar…it’s
almost like it’s “leaking” down the left side!
There is a picture that is “aligned right” so that text
flows around it but it pushes the text in bad places and also doesn’t scale
down very well until you get all the way down to 350~px. Maybe I could simply
make it go away as well by wrapping it in div … is it bad idea to have a left
or right aligned image in responsive design?
Other than that, I’d LOVE for someone to take a look at my
code and stylesheet and see what messes could be cleaned up. I really am
determined to learn this from the ground up and I want to understand every bit
of css so that I can solve any issue that comes up.
Thank you!