Domain Empire

Fixed Page Size Question using Dreamweaver

Spaceship Spaceship
Watch

gazzip

First Time Poster !VIP Member
Impact
181
Hi All - I am currently doing a website for a touchscreen for my local town, I would like to set the sizes of my pages to 800x600 and Set them so they cannot change - for example, if someone pastes a massive amount of text in by mistake then instead of it automatically making the page longer it stays the same ie 600 pixels long.

I am working in Dreamweaver - does anyone know if I can place a piece of html code in to achieve this ? Any suggestions appreciated :)

Thanks
.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
You can use CSS for this :)

put <div id="container"> right after <body> and then </div> right before </body>.

Then, in your <head> type this:
Code:
<style type="text/css">

#container {
width: 800px;
height: 600px;
overflow: hidden;
}
</style>
This will clip any text or items that exceed the 800 x 600 area.
 
Last edited:
0
•••
Thanks JYM - I'll give it a try :) appreciate it


.
 
0
•••
JYM hit it on the nose. That should work for you just fine.
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back