psd to html/css test problem
i make my own psd design to train on,
i always get problem in the differents in resolution [ 1280 x 1024 and higher]
my screen is 1280 x 1024 when i use position relative it not work in higher resolution
the same is padding margin ,
this is my psd design:
i really dont know how to make the background is really hard;
my background is this:
how i make this backgrounds to all resolutions?
The width is easy: use "width:100%".
The height is more difficult because it is split into bands. The easiest answer is, again, to use percentages. However, that is often not optimal. A better answer is to use "position: absolute", but that is more complex.
Like jedaisoul sad, use position: relative; in the main tag with width:100% and the inside tags use position: absolute; . The position is set of the elementes top: , left, right or bottom relative with the parents tag tag you set the position relative, like this:
I always use this stles positions, like this my web site, look my source code: http://sitesamil.com.br/
See that my menu bar are always in the right and left of the screen for any kind of resolution.
Users Browsing this Thread
There are currently 5 users browsing this thread. (0 members and 5 guests)