See attached.
See attached.
John.
John - VERY interesting. I need to shake off the cobwebs and take a close look at this. Certainly the output will enable the SE's to read the content!
John - I have been working with this and its looks very good. However I have a problem and a question:
1. Problem? When the text exceeds the length of the page the scrolling box only seems to display the amount that that matches the page length.
2. Is there a way to avoid the user seeing the horizontal scroll control when the text is not as wide as the window?
Hi John,
i see in the source of your example the following script:
where do you put this code? I can't see a placeholder for it.HTML Code:<!-- function xr_rx(){var ww=document.documentElement.clientWidth; xr_dx=(ww-parseInt(xr_xr.style.width))/2;var i=-parseInt(xr_xr.style.width)/2;if(xr_dx<0){i-=xr_dx;xr_dx=0;};xr_xr.style.marginLeft=i+"px";document.body.style.backgroundPosition=xr_dx+"px 0px";}; function xr_nn() {return(true);}; window.onresize=xr_rx; --> </script>
Sebastian
Last edited by Sebastian; 19 December 2009 at 04:50 PM.
Sebastian - If you import/merge John's .xar file into your website and then export your website are you saying it does not work?
John - Would a php include be another solution - for both SE's and also to make editing the text easier? Something like this in the placeholder:
<div style="overflow:auto; height:330px; width:450px;">
<?php include "text_file.htm"; ?>
</div>
I tried this but I cannot seem to get it to work. I stripped everything out of the exported html file everything except the "body" stuff and renamed index.htm index.php. I tried to preview it in EW2 with php support on but it does not display. Any thoughts?
Interesting John, if a little convoluted. But how would you get rid of the ugly horizontal scroll bar?
Clip property to the rescue :-)
Modified version of Covoxer's file below.
Tutorials: The Basics of Web Design - Tips and Tricks - Creating a Nav Bar - Video Tutorials - Stretchy Buttons - Manual Nav Bars
Sledger...
the horizontal scroll bar is there in case you are going to use the whole page within the frame, however if you wish you can just move the placeholder (in the frame end layer) left - close to the content layer as you desire.
Bookmarks