Jump to content

Height - Using Percentage


Felipe Ramalho

Recommended Posts

Next I have doubts!
I'm trying to make the Rectangle MID Left
HALF of the Page in the left corner.
But I wish that this square is the Adjustable Screen Size.
#midleft{background-color: #cccccc; position: relative; width: 12%;height: 50px;   % Percentage does not work here?border-color: #666; border-width: 2px; border-style: ridge; clear: left}
Toward He Width12% Increase Agreement with Screen Size.
But height does not fit with%
How to Adjust the Height is the Screen Size?

 

Link to comment
Share on other sites

body {font-family: Verdana, Geneva, Arial, sans-serif; height: 100%;}

Sem_t_tulo_1.gif

 

Want to do this!
A Side Menu with 4 Items Inside.
Each item would <a> and <img src="">
The 4 Items Inside should self adjust.
I do not understand your explanation.
Link to comment
Share on other sites

 

UAHuahu, Got it!
So correct and always declare my CSS.
html, body {margin: 0, height: 100%;}
Correct and Ever Start CSS that way?
To Design Responsive?

 

I always correct that when I start coding a new stylesheet in CSS.

Especially, if it's a responsive design...

 

Good Luck with your CSS.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...