iframe scrollbar colors

liunx

Guest
Hi

I hope you dont mind me asking two questions please :):):)
1.I have put an iframe on my page but i want to color the scrollbars, is there a way of doing it please.

2. I have tested the iframe and i have got an image into the frame as a test --but I really want to use it as a text -- I read that if you want to put text into an iframe you have to do it in plain text and no tags -- which i assume as the same as a .css can you use a background color to the page text ---- plus font style/color.

Appreciate advice please

:)1) coloring scrollbars is Microsoft proprietary code and hence frowned upon, so if you really want it try googling scrollbar color, but...

2) An iframe is a link to another html page. As such, the page you link to should be absolutely complete - including all head and body elements.

If you were using server side includes then you would just give the computer a block of code to be inserted.

That help?Hi Dave :)

Yes thats a great help ----- I did the google bit with the iframe link, and it was so confusing --I came here.

i know what I,m doing now.:)

Yes in reference to the MS Scrollbars it is not liked by many Web Designers -----

Thanks

with respect :)a lot will agree not to use the iframe. Instead use a div w/ overflow: auto; and set the width and height.

This will give you the scroll bar and everything and will be better for dl spd and search engines. The only disadvantage is that if you have to change something on it and u have it linked in many pages then u have to change it on all the pages. Thoguh you can use a server-side language like PHP and use SSIs (server side includes) which will fix this.Hi Pawky

Thanks friend ---- I have made one of those as well ----:) I am new to CSS and trying experimentally to figure out what I want --:)

I used to do the text boxes with tables but i am off tables now, i just need now to know how to put a border on the text box, top left and bottom --- :cool:

Thanks friend :)glad to see your off tables :D

when u say text box are u referring to a <textarea>? or a div w/ text in it?

if its a textarea:

textarea {
border: 1px solid #000;
border-right: 0;
}

if div or whatever same, just replace where it says textareaHi Pawky

Real glad to see you --- :)

Yes i dont intend using tables ----

This is what i have

<div style="overflow: auto; width: 500px; height: 230px; border-width=1px; scrollbar-base-color: #990000">TEXT</div>

I have tried ALL afternoon on google - to find a way that i can make it ( Text box) a <div id so that i can use it in the css script (<head>, and align it, as i want it to the right of the content box.

You see in the Content (Script) I have the text-align: left because i want the text in the content area to be to the left --- but it aligns the text box left as well.

Sorry to be confusing -- can you understand ??

Thanks friend:)maybe :P let me c if i get it right. If i do then do the following ;P

CSS file:

#textbox {
overflow: auto;
width: 500px;
height: 230px;
border-width: 1px;
text-align: left;
scrollbar-base-color: #990000;
}

html:

<div id="textbox">
Text
</div>



i believe that is all that you want. Also, realize that the scrollbar color will only be changed for IE and does not work for any other browser. It is also discouraged to use because you shouldnt be changing the users interface or whatever :P hope i got what u wanted right :)Hi Pawky

That is so brilliant ----- That is Exactly what I wanted.
:)

Very kind of you ---- I hope you have a nice week

:)awesome, if you have any more questions just ask :) gl and also have a nice week :)
 
Back
Top