| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Iframe horizontal scrolling
hi
i'm facing this problem using the iframe, i got the horizontal scrolling which i dont need, i cannt switch it off because i need the vertical one so is set as auto. i have tried every CSS code but it's not working for me, the only thing worked is to remove the DTD, which is not usable cuz it switches the transperancy off as well and i need the iframe to be transperant to view the background of the page. plus it affects the attached CSS to that page, and how could i have a valid page without DTD? so is there anyway to get rid of the horizontal scrolling thanx |
|
#2
|
||||
|
||||
|
not sure if it's the right way to go, but i generally set the width of the body for the page to include in the iframe to 90-95% and it usually emliminates the horizontal scrollbar.
Code:
<style type="text/css">
body {
width: 90%;
}
</style>
__________________
Come JOIN the party!!! Quote of the Month: Pretension: The downside of being better than everyone else is that people tend to assume you're pretentious. Questions to Ponder: You can be overwhelmed and underwhelmed, but why can't you be simply whelmed? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#3
|
|||
|
|||
|
i've tried that and it didnt solve the problem, thanx anyway
|
|
#4
|
||||
|
||||
|
works on my end with no issue ... why not post your code as you're currently using it.
|
|
#5
|
|||
|
|||
|
here is my iframe code
<iframe allowtransparency="100%" frameborder="0" src="text_services_en.html"></iframe> and here is my iframe CSS iframe { height: 300px; width: 320px; overflow-x: hidden; scrolling:auto;// eventhough this line is useless } and here is my content (text_services_en.html) <body topmargin="0" rightmargin="0"> <table width="60%" cellpadding="0" cellspacing="0"> <tr> <td> //and here goes the content text of this page thanx |
![]() |
| Viewing: ASP Free Forums > Web Design > Web Layout > Iframe horizontal scrolling |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|