Ladies and gentlemen. For my next stupid question....
I set up my site with a somewhat liquid layout and my nav and content divs have a percentage width. I have some images inside these boxes (nav buttons and such) but they don't shrink along with their container when I resize the page. Instead the right border of the container box "eats" the images as it approaches them.
Ladies and gentlemen. For my next stupid question....
I set up my site with a somewhat liquid layout and my nav and content divs have a percentage width. I have some images inside these boxes (nav buttons and such) but they don't shrink along with their container when I resize the page. Instead the right border of the container box "eats" the images as it approaches them.
So uh, why is it doing that? the coding for the images and buttons is all nested within the NAV div. Shouldn't everything within it automatically be affected by its own size?
Images cannot simply resize along with the fluid layout of css and html. They need help with either javascript or perhaps media queries for a responsive web design approach. I may be wrong, and if another coder steps in and says, please listen to them.
--Kevin
.
__________________
My keyboard is an IBM from 1993 and I like it that way. | Who is Dan Well? Everyone always says I know Dan Well.Building a web page is like building a birdhouse. Put it up there and watch 'em come. | Maintaining the aspect ratio of an image is more important than having a cold orange pop.
Ok, I think I see what you did there. I got that to work for a graphic which I have inserted into the nav bar, but when I apply the same style rules to the nav buttons, they simply vanish!
As JustS stated above, use em measurement (which is based on M letter of base font size) for text and nav-buttons.
My examples are in a fluid layout so the nav-buttons (which are float: left) just plop down one below the other. Might not be elegant, but did not want to reduce the navigation text.