|
|
#1 |
|
Iron Chef
(Reviewer) Join Date: Nov 2000
Location: Winamp Island
Posts: 3,036
|
HTML Geniuses?
Hey, does anyone know code to allow vertical scrollbar but not allow horizontal scrollbar?
Last edited by flatmatt; 9th January 2002 at 21:46. |
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Dec 2001
Location: <a href="http://www.jones-town.co.uk">Here</a>
Posts: 36
|
Put this in your body tag.......
Scroll=vertical Simple no? |
|
|
|
|
|
#3 |
|
Iron Chef
(Reviewer) Join Date: Nov 2000
Location: Winamp Island
Posts: 3,036
|
Hmmmm, nothing. Horizontal bar still shows.
![]() The other alternative is, does anyone know how to make an image take up the full space between the left side of the window and the right scroll bar without going over? If I try width=100%, it still doesn't take up the whole width. Here's my stolen-from-Geocities-PageBuilder HTML for the header of the new flatmatt.com, it's 1024 wide, but this allows people to scroll right into nothingness. code: |
|
|
|
|
|
#4 | |
|
Major Dude
|
Quote:
<STYLE type=text/css>BODY { SCROLLBAR-FACE-COLOR: #000000; SCROLLBAR-HIGHLIGHT-COLOR: #000000; SCROLLBAR-SHADOW-COLOR: #000000; SCROLLBAR-3DLIGHT-COLOR: #000000; SCROLLBAR-ARROW-COLOR: #000000; SCROLLBAR-TRACK-COLOR: #000000; SCROLLBAR-DARKSHADOW-COLOR: #000000 } </STYLE> this is based on a black background and should make the entire bar itself black and not show up - example but if you click where the scroll bar should be, it should still scroll down If anyone can find any of the skins I made please email them to Forevever@aol.com I can't remember all the names but specifically hunting for Lascivious, and DEVOUR (compilation with Jax) and any in the Impulse series which had 6 total. Auriferous, Gilt, Impulse, Nadir, and 2 others I can't remember but you dig. |
|
|
|
|
|
|
#5 |
|
Major Dude
|
i dont know how flatmatt, sorry
![]() "when you are with me i'm free, i'm careless, i believe" |
|
|
|
|
|
#6 |
|
Major Dude
|
ha
its not what forever said, i know that
yea...I said it. |
|
|
|
|
|
#7 |
|
Iron Chef
(Reviewer) Join Date: Nov 2000
Location: Winamp Island
Posts: 3,036
|
The thing is, I know how to get rid of both scrollbars (Thanks Jones), but I need to get rid of horizontal while leaving vertical.
Argh... Options, with problems: - Leave as is Prob: Horiz. scrollbar - Change to width = 100% Prob: Doesn't fill whole width - Frames Prob: Would have to use pop-up ads instead of page-top ads. Darn Angelfire. - Change title display Prob: I don't want to. ![]() Dang. [edit]Wait, idea, I'll try tomorrow and get back to you guys.[/edit] |
|
|
|
|
|
#8 |
|
Forum King
Join Date: Feb 2001
Location: 127.0.0.1 Website: skinme.net
Posts: 3,352
|
It's not possible.
Ideas -: popup window set to 100x700 (or whatever) you control size so you can build for it -: javascript scrolling w/ scrollbars=no (you'd have to find the script) try wsabstract.com USENET etc. -: Get a different host... Who do you use to dialup? I bet they offer free webspace, w/o ads, and with other cool stuff. |
|
|
|
|
|
#9 |
|
Forum King
Join Date: Feb 2001
Location: 127.0.0.1 Website: skinme.net
Posts: 3,352
|
When you set it to 100% width did you set margins to 0? If ntot try again, and add the following to the body tag:
code: You can do this is in CSS if you want. Just add the following to the CSS code for the BODY tag: code: |
|
|
|
|
|
#10 |
|
Senior Member
|
try using this:
***** <div id="Layer1" style="position:absolute; left:0px; top:x%; width:100%; height:xpx; z-index:1; overflow: hidden"> <img src="x" width="x" height="x"> </div> ***** <plug mode>taken from my website</plug mode> i'm not sure how you could do the scrollbar thing without losing both... fsnl marc eo: Alicia Keys - Falling
|
|
|
|
|
|
#11 |
|
Major Dude
Join Date: Apr 2001
Location: Sweden
Posts: 515
|
i dont think its possible. get rid of all the scrollbars and then use some javascript to scroll instead perhaps
|
|
|
|
|
|
#12 |
|
Iron Chef
(Reviewer) Join Date: Nov 2000
Location: Winamp Island
Posts: 3,036
|
skinme! You're a genious! The margins worked perfectly! Thank you very much, now that I've got that layer sized horizontally to exactly the whole window, it's great! Not only that, but the vertical margin code makes it so I don't have to use a spacer.gif.
One thing: I feel dumb, but what is this CSS?Thanks to everyone else for trying, too. ![]() In case you were confused, the issue with the scrollbar was that the header layer ran off the right of the page, causing the horizontal scrollbar to show up. Now that nothing goes to the right of the page, it doesn't show up. |
|
|
|
|
|
#13 |
|
Major Dude
|
CSS = Cascading Style Sheet = used in htm/l documents to save you time changing the colour/style/font/size etc of paragraphs, headings and other elements commonly seen in these pages.
You can set mutiple htm/l files to one CSS of all the headings/ body and whatever you want changed instead of doing it manually for each html file.. which becomes tedious if you have a large amount. There are programs to create the "x.css" files with.. check out: http://www.w3.org/Style/css for current development. |
|
|
|
|
|
#14 |
|
Forum King
Join Date: Feb 2001
Location: 127.0.0.1 Website: skinme.net
Posts: 3,352
|
It's a seperate technology to HTML that integrates with it like um, say OREOs and MILK, WINAMP and SKINS, etc.
It is a way of setting the default style of the document, and creating styles for certain classes or ids. You could set all text to be red and size 15pt except anything in a DIV tag with a class of "momma" which could be size 36pt. You dig? Cool new stuff happening in CSS2 - the ability to control how your page prints, setting how it is read in in browsers for the blind, and lots more. It is a technology to take HTML into media where it was before unsuitable, printed and voice, for example. But it's damn nifty at setting margins, scrollbar colours (IE5+ only), etc. |
|
|
|
|
|
#16 |
|
Major Dude
|
:-/
nini, whats thatin your avatar?
yea...I said it. |
|
|
|
|
|
#17 |
|
Candyass
(Major Dude) |
within netscape use javascript/css as your type declaration...
example: <style type="text/javascript"></style> by default the interpretation by the DOM is <style type="text/css"></script>. Using the above declaration it will force a Netscape browser to load an alternate setting for the DOM (the javascript interpreter rather than the standard settings. This scenario would allow the netscape browser to use and include the functions that IE alread supports natively.) Understandly the javascript/css method may require you to identify the 'elements' by name rather than by simple declare. Meaning <div id="dumb"></div> would have to be declared by the following: document.body.dumb.[something] Joe G. added: There is another way here that will allow you to embed other documents with the current & active page as follows: <object type="text/x-scriptlet" width=100% height=140 data="includes/header.shtml"></object> This will allow you to embed within the page another page. The benefit here is the page is considered a scriptlet and is not interpreted for elements etc...so, style declrations defined from within your page will effect the embedded page or so I think...heh. ![]() for your example a good use would be to do the following instead of: <div id="layer2" style="position:absolute;left:0;top:0;width:1024;height:50;"> <table width=100% height=50 border=0 cellpadding=0 cellspacing=0 background="header.png"> <tr valign="top"> <td></td> </tr></table></div> do the following (also note to have the margins set to 0 on the main/sub page). <object vspace="0" hspace="0" type="text/x-scriptlet" width=100% height=140 data="image.html"></object> **Note: THe object height="" will need to be set to the exact pixel width of the image. ie 140 in the example above. the page would be as follows: <img height="140" width="1024" src="someimage.png"> |
|
|
|
|
|
#18 |
|
Forum King
Join Date: Feb 2001
Location: 127.0.0.1 Website: skinme.net
Posts: 3,352
|
Sorry, Jax. Regarding the embedding the image as an object, could you please explain the advantages? I'm not sure I quite understood what you were getting at. Thanks
|
|
|
|
|
|
#19 | |
|
Major Dude
|
Re: :-/
Quote:
That is Galadriel, Lady of Lothlorien, from LOTR. She is played by Cate Blanchett. If you don't look, I'll force you to. |
|
|
|
|
|
|
#20 |
|
Banned
Join Date: Aug 2001
Location: Mice!?
Posts: 1,194
|
this might help
code: |
|
|
|
|
|
#21 |
|
Iron Chef
(Reviewer) Join Date: Nov 2000
Location: Winamp Island
Posts: 3,036
|
|
|
|
|
|
|
#22 |
|
Forum King
Join Date: Feb 2001
Location: 127.0.0.1 Website: skinme.net
Posts: 3,352
|
YAY! I WIN! I WIN! I'M THE HTML GENIOUS!
![]() Nah, only joking, although my solution worked best, it is damn easy overlook the simple things,like setting the margins, pluging the computer in, getting up in the morning, going to sleep at night, etc. |
|
|
|
|
|
#23 |
|
Iron Chef
(Reviewer) Join Date: Nov 2000
Location: Winamp Island
Posts: 3,036
|
Not quite an oversight; never heard of that HTML before, hehe.
|
|
|
|
|
|
#24 |
|
Candyass
(Major Dude) |
Element: <object>
Start tag: required End tag: required Attributes: declare, classid, codebase, data, type, codetype, archive, standby, height, width, usemap, border, hspace, vspace. id, class, lang, title, style, onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup <object> is used to embed objects within a document. The object could need an application to render it or the user agent might already be able to do so. Attributes are declare, classid, codebase, data, type, codetype, archive, standby, height, width, usemap, border, hspace, vspace. declare makes the object a declaration. classid is used to specify the location of the objects data. codebase specifies the base URL for classid, archive, and data. data is used to specify the location of the objects data. type specifies the type of data. codetype specifies the objects data type. archive specifies a URL to information on the object. standby specifies a message that the user agent should display until the object renders. height sets the height of the object. width sets the width of the object. usemap is used for client side imagemaps. border sets the border around the object. hspace sets the horizontal space around the object. vspace sets the vertical space around the object. Optionally, <iframe frameborder="0" scrolling="No" src="content.html"> <ilayer src="content.html"> Sorry, your browser does not support the iframe or ilayer tags, which are required for this section of the page to be visible. </ilayer> </iframe> The advantages are as follows: The object tag is reserved as a plugin tag. Meaning it is supported by both browsers and styles are applied to embedded objects. (nested doc's). In the second example two tags are replacing the 1 tag needed in my first example to do the same thing in both browsers. Basically, using SSI (Server Side Includes) without the server being setup for it. The two methods actuallly are used when you would like to use one of the following however, server limitations do not allow it: <!--#include file="someimage.html"--> <!--#include virtual="script/somescript.js"--> The real advantage here is that by using the any of the above you can of course use a single file to be for example a header file. (ie the navigation on top or left of your screen). Having no need for many copies of the same code for each page you lessen the load to the client by not having to send the client a new copy of every page. Rather, you use what they have already cached locally.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|