Results 1 to 8 of 8
Thread: Setting the CSS border length?
-
October 6th, 2004, 08:56 PM #1
Setting the CSS border length?
Im brand new to CSS and im starting to learn it, i making a table, and this is what i have so far :
style type="text/css">
h3 {text-indent: .1cm}
h3 {font-family: Verdana}
h3 {color: #666666}
h3 {font-size: 90%}
h3
{
border: 2px dashed #cccccc
}
I need to the lenght of the border now....
Thank Youmuqawamah al-falasteen - coming soon
-
October 6th, 2004, 10:22 PM #2Could you be more specific? Do you mean height?I need to the lenght of the border now....
-
October 6th, 2004, 10:47 PM #3
No, i mean the length of the whole table....
muqawamah al-falasteen - coming soon
-
October 6th, 2004, 11:14 PM #4
You can't do it just for the border. You need to define the width: and/or height: attribute in the CSS for the h3, and the border will adapt around that. BTW... never use multiple tags for the same element, combine them in one (this includes example of adding width and height to it...
PHP Code:<style type="text/css">
h3 {
width: 400px;
height: 100px;
text-indent: .1cm;
font-family: Verdana;
color: #666666;
font-size: 90%;
border: 2px dashed #cccccc;
}
</style>
Though i'm a bit rusty on CSS... perhaps I am wrong and h3 tags don't support width and height (like those retched span tags!... you gotta love em, but they lack support for a lot of CSS features)
-
October 7th, 2004, 03:12 PM #5
Ok, thank you.
muqawamah al-falasteen - coming soon
-
October 7th, 2004, 10:10 PM #6Haha, never thought about using a display:block; on those span elements, have you?
Originally Posted by lostinbeta

You can only set heights and widths to elements that aro of the type 'block'. Most elements are that default, but some (like strong and span) are inline.- [m]
Disclaimer: stupid people get stupid anwers. Free-loafers don't get what they want from me. Are you one of those people? Be warned. End transmission.
-
October 7th, 2004, 11:29 PM #7
Like I said... i'm rusty on my CSS... and now i'm rusty on my CSS and very appreciative of the new info!
-
June 12th, 2012, 10:34 AM #81Registered User
postsborder-length: [value];
border-length: [value];
will work in css3.

Reply With Quote

Bookmarks