Forums
This topic is locked
resolution size of website
Posted 14 Jun 2006 23:08:21
1
has voted
14 Jun 2006 23:08:21 maarten ik posted:
hello all. I am new to dreamweaver, and i gotta finish a project for my school in 2 days. I must make a labyrinth wich isnt really hard. But it has to have a resolution of 640x480. I am trying to get it that way but i cant.
Just to be sure
a site with the resolution of 640x480. Can be fullscreen as long as the part wich u see isnt more that 640x480 pixels.
I made it this way: background is an image of a door wich u can enter by pressing a button. This picture of this door is 640z480 pixels in resolution. However it keeps repeating it self, wich is not my goal.
I searched for 1 1/2 hour. Asked all the people who code if they knew how they knew a solution, but no one knew and i found nothing but useless information. I did found this site and some topics on this site with kinda the same question in it. BUT not the answer they said i should do something with changin some % or something
anyway
with this long story, i hope u guys understand my problem.
PLEASE ALL help is needed here, i am desperate as my exams are next week, and if i have to finish this project, i cant study
THX
(if i wasnt clear ill explain more, thx)
Replies
Replied 15 Jun 2006 05:51:43
15 Jun 2006 05:51:43 John Marsden replied:
The answer the your 1st question is yes - though it seems a little mean on those with 21in Monitors <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>
Rather than having your background as part of the <pre id=code><font face=courier size=2 id=code><body> </font id=code></pre id=code> tag in HTML use CSS styles. Remove the background attribute from the <pre id=code><font face=courier size=2 id=code><body></font id=code></pre id=code> tag and add the following code to your page - making sure you do this BETWEEN the <pre id=code><font face=courier size=2 id=code> <head> </head> </font id=code></pre id=code> tags of your page.
<pre id=code><font face=courier size=2 id=code><style>
body {background-image:url(background.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center;}
</style> </font id=code></pre id=code>
Hope this helps
Rather than having your background as part of the <pre id=code><font face=courier size=2 id=code><body> </font id=code></pre id=code> tag in HTML use CSS styles. Remove the background attribute from the <pre id=code><font face=courier size=2 id=code><body></font id=code></pre id=code> tag and add the following code to your page - making sure you do this BETWEEN the <pre id=code><font face=courier size=2 id=code> <head> </head> </font id=code></pre id=code> tags of your page.
<pre id=code><font face=courier size=2 id=code><style>
body {background-image:url(background.gif);
background-attachment: fixed;
background-repeat: no-repeat;
background-position: center;}
</style> </font id=code></pre id=code>
Hope this helps
Replied 15 Jun 2006 05:54:44
15 Jun 2006 05:54:44 John Marsden replied:
Oh - and replace "background.gif" in the example with the name and path of your background image.
Replied 15 Jun 2006 16:12:50
15 Jun 2006 16:12:50 maarten ik replied:
THANK YOU!!
i am really really really thankfull
ive been trying to get this, with no result
serious man!! my greatest thx<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
(yeah it works it works /starts dancing)<font size=1></font id=size1>
i am really really really thankfull
ive been trying to get this, with no result
serious man!! my greatest thx<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
(yeah it works it works /starts dancing)<font size=1></font id=size1>