Topic: a few css q's (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=10701" title="Pages that link to Topic: a few css q&amp;#039;s (Page 1 of 1)" rel="nofollow" >Topic: a few css q&#039;s <span class="small">(Page 1 of 1)</span>\

 
TekFusion
Nervous Wreck (II) Inmate

From: US
Insane since: Mar 2002

posted posted 03-29-2002 05:43

1. is there any way i can change the size of the scroll bar?

2. is there some way in a style sheet to take the size of a normal table (table width="50%") and implement some kind of style sheet to max it out to the edges of the screen? (reason i ask this, is because i own a message board with embed hard core, and im wondering if im able to change it)

3. does the character style sheet have to always be in the head?

4. how do i change the color of buttons? (ie. the submit new topic button is in color coordination with the board)

Ap0s7le
Nervous Wreck (II) Inmate

From: Louisville, KY
Insane since: Mar 2002

posted posted 03-29-2002 06:44

yo... I'm new to CSS, just started playing with it the last day or so...
but for like what you're talking about, you can change the various fields
like
input,radio,select,textarea etc with
{ background-color: #000000; }

then if you want to change the border, you can add
border: solid 1px #color;

the "solid" can be a number of things... dotted... double... ah, mind just went blank...
it's been a rough day, sorry bro

ah and my fav way of doing things is just making up my own classes for buttons, forms etc...

if I can answer anything else I'm going to try, if I'm wrong someone slap and teach me the right way please

cheers

<edit>
BTW, I want my old username back, I registered in like 2000 and it was "AT" and the blasted thing wont email me my pass! lol
</edit>



[This message has been edited by Ap0s7le (edited 03-29-2002).]

u-neek
Bipolar (III) Inmate

From: Berlin, Germany
Insane since: Jan 2001

posted posted 03-29-2002 08:53

1. No, you cannot change the size of the scrollbar.

3. No, the style sheets doesn't always have to be in the head. You can use the <span> tag to change your text.
For example: <span style="font-size:20px;color:red;background-color:white;">LALA</span> will return a big red "LALA" on a white background. You can use the style-thing on every tag you want. <a href="bla.html" style="your own css">la</a> will also work without problems.

2. I don't know if i had understand your question correctly, but you can change the width of your table as i mentioned in answer number two: <table style="width:100%">.

4. Ap0s7le answered your question. BTW: welcome to the asylum

Ap0s7le
Nervous Wreck (II) Inmate

From: Louisville, KY
Insane since: Mar 2002

posted posted 03-29-2002 09:53

thanks u-neek, and I don't know how but I don't recall reading his other questions until just now... *shakes head*
btw, I use to lurk here a lot in the past, lately I've been going a bit crazy so I thought the best place to go would be the asylum! *grin*

later

kuckus
Bipolar (III) Inmate

From: Berlin (almost)
Insane since: Dec 2001

posted posted 03-29-2002 10:41

TekFusion, to modify a table's width after the page has been loaded (that's what you want to do, isn't it?), you could try a little JavaScript like this (I didn't test it, so be careful ):

<head>
<script language="javascript" type="text/javascript">
<!--

function adjustTableSize() {
if (document.getElementById)
document.getElementsByTagName("table")[0].style.width = "100%";
}

onload=adjustTableSize

// -->
</script>
</head>

That would change the document's first table's width to 100%. Replace the [0] with [1] to change the second table's width and so on.

kuckus

Phil
Bipolar (III) Mad Scientist

From: Eastbourne, UK.
Insane since: Mar 2000

posted posted 03-29-2002 14:39

TekFusion,

1. As uneek says, no!. However you can specify the size of the window, and if the content is greater (within), you'll get both horizontal & vertical scrollbars.

2. Not sure if I fully understand what your saying about a table width either. But, if you wanted a centered table to expand across all screen resolutionss, then design using css in a 3 column fluid box model. By doing so, you set the left and right columns to fixed widths, with the center column accomodating the rest of the window regardless of screen res - hence fluid.

3. css implementation is either Inline Style, Embedded (between the head tags) or external style sheet.

4. If you're using text boxes as buttons, you can vary the color by defining them within your links. The defined links you can add here are endless, and as Ap0s7le rightly says, you can also define by class.

Hope this helps.


Phil
www.scansped.co.uk



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu