var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Problem with iframes - please help
I am making a restaurant website for a local restaurant and on the right side I am wanting that to be where pictures of the restaurant will be, like a little tour, inside an i frame.
The basic outline is right here (the top image is missing because its still being worked on) and you can see the i frame and evrything
The images that I am desplaying in the iframe are only 125 pixels wide and the ifram is 130 pixels wide and the cell the i frame is placed in is 140 pixels wide, but when you view it as you can see there is still a bottom scroller... Can anyone tell me what I am doing wrong?
set the property scrolling="no"
so your code will be
hope this helps
<iframe name="_pics" frameborder="0" width="125" height="400" src="pics.html" scrolling="no"> </iframe>
No I want it to scroll up and down but not sideways
There is to much space on the left side of my pics.html (the part that goes into the frame) so I think thats why its not fitting but Ive seen people do this before
give margin as 0 pixels for the page body of pics.html
the css class would then be
also note that the scroll bars in the iframe need to be counted as part of the iframe width. try giving the width of iframe about 145.
let me know if this dosent work
I had to make the iframe width 170 - to work, so I guess its all ok...
was this before adding margin: 0px; to pics.html or after adding it to stylesheet. since with width at 170 it would work even without the changes to style.
Originally posted by lokodezine
I had to make the iframe width 170 - to work,
But this would be wasting screen space. you will need to consider this if your target audience screen resolutions is 800X600 since 170 would be almost 20% of screen width
just a thought
Have you considered using a div instead of an iframe?
You would associate this style with your divs
(or something in the sorts)
You can see an example here:
It should be noted that overflow-y is specific to IE, and is generally used to remove the vertical scrollbar at the side of the browser window when you are making fixed head/footers using div's.
Netscape etc. automatically adjusts the scrollbar so overflow-y is redundant anyway.
I think however, in this situation, it was meant to be just the standard "overflow" directive, not "overflow-y"