0
I am developing a site with only HTML and CSS. I want the static size to be this:
#tudo{
width: 1024px;
margin: 0 auto;
text-align: left; /* "remédio" para o hack do IE */
}
The problem is when the screen is smaller the site defaults instead of staying the same at 1024px. What to do?
When it’s on a screen smaller than 1024px it looks like this:
Can you explain better what you mean by static?
– Pablo Almeida
David, I would take a look at the idea of responsive layouts. Maybe good old bootstrap can help you ;)
– Rubico
I appreciate your tip. Right now I am practicing with old school techniques. Only then on another site will I approach this area.
– David
@David advises to study about CSS Media Queries!
– Gabriel Rodrigues
Did Oce define the properties of buttons(<code>width, margin and padding</code>) in pixels as well or in percentage? Are you using float left on the buttons? <br> It would be nice to show their html and css too, otherwise it is difficult to orient you on something.
– Bruno Romualdo
Add a
min-width:1024px
causes it to show a horizontal bar instead of mess.– Bacco
Bacco you solved my problem thank you :)
– David