|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
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 |
|
#2
|
|||
|
|||
|
RE: iframes breaking under different resolution?
frames are tricksie.. easiest solution would be to make your site have a fixed width
|
|
#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? |
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
RE: iframes breaking under different resolution?
i'd put everything in a table, and give the table a set width, personally.
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
RE: iframes breaking under different resolution?
ok thanks so just putting
Code:
<table width=100%> and </table> around the iframe's should work? |
|
#8
|
||||
|
||||
|
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
|
|
#9
|
|||
|
|||
|
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
|
|
#10
|
||||
|
||||
|
RE: iframes breaking under different resolution?
thanks i have sorted it now.
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > iframes breaking under different resolution? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|