I am trying to set a div slightly off-center, while maintaining a static width.
I included an example of where I want the div placed
I achieved the exact placing I am trying for in 1024x768 using margins, but I want the borders to expand in higher resolutions, so the content doesn’t become stretched.
#div1 {
Background-color: #FFFFFF;
margin-left: 22%;
margin-right: 10%;
min-height: 150px;
border: 5px solid #E9003A;
}
That’s the margins I used, if it helps.
Thanks for the help, I hope it’s plausible.