Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old December 3rd, 2003, 03:18 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
iframes breaking under different resolution?

hi i have a site which has the layout as an image then i place iframes over the image where i want the content to be displayed. At the resoultion 1024x768 it works fine but at the resolution 600x800 it breaks out of line. and i cannot make it work for both, can anyone suggest a solution.

[link]http://www.habbox.co.uk/php/new.htm[/link]

Thanks

~kendo

Reply With Quote
  #2  
Old December 3rd, 2003, 03:22 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: iframes breaking under different resolution?

frames are tricksie.. easiest solution would be to make your site have a fixed width

Reply With Quote
  #3  
Old December 3rd, 2003, 03:37 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: iframes breaking under different resolution?

i have got a peice of javascript that i think should work:

Code:
<SCRIPT> 
window.resizeTo(1024,768); 
</SCRIPT>
<SCRIPT LANGUAGE="javascript">
var width = screen.width
var height = screen.height
document.write("<BODY onUnload=window.resizeTo("+width+ "," +height+")>")
</SCRIPT> 

I think it should work or is there a more practical method?

Reply With Quote
  #4  
Old December 3rd, 2003, 03:45 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: iframes breaking under different resolution?

nah as i thought it didnt work i havent really given my site's before a width. but is this right?
Code:
<body width=200 height=200

or am i doing this wrong

Reply With Quote
  #5  
Old December 3rd, 2003, 04:10 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: iframes breaking under different resolution?

i'd put everything in a table, and give the table a set width, personally.

Reply With Quote
  #6  
Old December 3rd, 2003, 04:25 PM
nazly nazly is offline
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Colombo,SriLanka
Posts: 1,325 nazly User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 18 sec
Reputation Power: 3
Send a message via Yahoo to nazly
RE: iframes breaking under different resolution?

Using tables is the best way to do.. If you want your site to be displayed on a fixed width then give a fixed width to the table.. Something like
<table width="780"> This is the better option if its a graphical oriented website which has a lot of images..

But if you want your site to autoscale the width according to the resolution the best option would be to set a percentage width. Something like
<table width="100%"> This is the best option for a more text based website. For example codewalkers.com


Reply With Quote
  #7  
Old December 3rd, 2003, 05:45 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: iframes breaking under different resolution?

ok thanks so just putting
Code:
<table width=100%>
and
</table> 

around the iframe's should work?

Reply With Quote
  #8  
Old December 3rd, 2003, 05:52 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: iframes breaking under different resolution?

no its still not working is there a php option to like detect what resolution the visitor is at and then take them to the appropriate page

Reply With Quote
  #9  
Old December 3rd, 2003, 06:33 PM
notepad notepad is offline
Codewalkers Loyal (3000 - 3499 posts)
 
Join Date: Apr 2007
Location: Central, IL USA
Posts: 3,214 notepad User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Send a message via AIM to notepad
RE: iframes breaking under different resolution?

100% is not a fixed width, like i suggested. PHP is server-side, if you want to get the browser demensions then use javascript

Reply With Quote
  #10  
Old December 4th, 2003, 06:39 AM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information. Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,945 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 5 h 58 m 47 sec
Reputation Power: 3
RE: iframes breaking under different resolution?

thanks i have sorted it now.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > iframes breaking under different resolution?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT