mikawhat
03-01-2006, 03:57 AM
Is there a way to specify a standard width for all of my pages? At the moment the width changes according to the contetns of the pages.
|
Click to See Complete Forum and Search --> : [RESOLVED] Standard page width mikawhat 03-01-2006, 03:57 AM Is there a way to specify a standard width for all of my pages? At the moment the width changes according to the contetns of the pages. Weedpacket 03-01-2006, 04:50 AM Use standard-sized paper? Don't go off the edge of the screen? I'm guessing that this has nothing at all to do with PHP; probably just a matter of using basic CSS to specify widths. bogu 03-01-2006, 04:50 AM Put you content in div tag like this: <div style="width:750px;">Content ....</div> If u dont know html tags, use a html editor ... bpat1434 03-01-2006, 10:13 AM Yes, as bogu stated, you can specify the width. Now, be careful. Even though it defines the width of 750px, content can still overflow past the edge. The way to combat that is good CSS: width: 750px; overflow: auto; With overflow set to auto the div won't be larger than 750px, and if content wants to be 800px wide, a scroll-bar at the bottom of the div will show up for the user to scroll. It's annoying, but it works. Helps guarantee with width will be the same. You might also use a "wrapper" to wrap all the content in the site. The wrapper would be a basic <div></div> but with a specified with and overflow handeling to give you what you want. You can see this in action at patternet.com (http://www.patternet.com). Honestly, if you're going to be specifiying the width of the page, just create the page in straight CSS (or convert it) as it will make things much easier, and later, when you say "Hey, I don't like 750px wide, I want 800px wide", it's a matter of changing one file (the CSS file) and the changes take place site-wide..... mikawhat 03-01-2006, 10:39 AM that's great. thanks! PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved. |