Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 09-02-2011, 03:19 AM   PM User | #1
BlinkInkCo
New to the CF scene

 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
BlinkInkCo is an unknown quantity at this point
set max width on page

I have a simple page that is going to become sourced via iFrame onto another site, the problem is that in order for it to continue to look decent as an iFrame on this site it needs to have a maximum width is 500px, so the whole page itself has to have a max width of 500px.. I am not quite sure if I would do that in the .php file or the .css file, any help would be much appreciated

Site that needs to go down to 500px: http://blinkink.info/dawnese/
BlinkInkCo is offline   Reply With Quote
Old 09-02-2011, 06:51 AM   PM User | #2
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
You have a number of places in your style sheet that sets the width to 960px; Change all of those to 500px; and see what you get.

Just do a search and replace.
sunfighter is offline   Reply With Quote
Old 09-03-2011, 06:38 PM   PM User | #3
BlinkInkCo
New to the CF scene

 
Join Date: Sep 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
BlinkInkCo is an unknown quantity at this point
Thank you that helped with the body part but I am also trying to control how wide the blue and tan top border goes, is that even possible? I need to have a max width of 500px, as if you can control when that stops tiling, I know its not common but hopefully someone knows how..

Blinkink.info/dawnese
BlinkInkCo is offline   Reply With Quote
Old 09-04-2011, 04:11 AM   PM User | #4
sunfighter
Senior Coder

 
Join Date: Jan 2011
Location: Missouri
Posts: 2,383
Thanks: 18
Thanked 350 Times in 349 Posts
sunfighter is on a distinguished road
Before proceeding - go to http://validator.w3.org/ and check out and correct the errors in the coding. You have a number of end tags with no beginning tags. One of these is the </form> tag Now that should have a beginning somewhere.

Also You have the table tags in the doc head and no end tag. These should be fixed.

blue and tan top border - The image should be placed into a 500px; width <div>

Fix code and post back
sunfighter is offline   Reply With Quote
Reply

Bookmarks

Tags
.css, .html, .php, width

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:18 AM.


Advertisement
Log in to turn off these ads.