BBS.PROGENIC.COM
Home      Members   Calendar   Who's On   SOTM
Welcome Guest ( Login | Register )
      

Home » Chat » Coding » horizontal rule


horizontal ruleExpand / Collapse
Author
Message
Posted Monday, February 18, 2008 7:00 AM
Progenic Family

Progenic Family

Group: Old Skool
Last Login: Wednesday, August 13, 2008 10:03 AM
Posts: 869, Visits: 2,742
Hey every1,

Does anyone know the styling details for a default <hr> ?!

I've restyled it for my most of my site, but there are a couple of places where I want an original stylee one rather than the one I've made.

Anyone know what the CSS is for a "real" horizontal rule, or some way of overriding my style to say "do not employ the style" - obviously I could class my designed one, but there are more instances of that than i want with the "default" stylee.

Any suggestions?


Somebody get me some Dickens!
Post #13817
Posted Monday, February 18, 2008 4:35 PM


Progenic Family

Progenic Family

Group: Forum Members
Last Login: 2 days ago @ 12:22 PM
Posts: 200, Visits: 331
Well, it's just like styling any other html element. Have a look at this: http://www.sovavsiti.cz/css/hr.html
Otherwise, you can just use a div to accomplish the line.

html:
< d i v   i d = " H o r i z o n t L i n e " > < / d i v >
(I had to use spaces, because this forum is progressing html)

css:
HorizontLine {
   height: 1px;
   width: auto;
   background-color: #000000;
}

This gives you a black horizontal line.

/Andy
Post #13820
Posted Monday, February 18, 2008 5:08 PM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Thursday, May 15, 2008 12:52 PM
Posts: 314, Visits: 2,401
Andy I think he knows how to style the hr tag. I think he just wants to escape his styling and be able to go back to a default hr.

I do this by styling the hr per selector. So like in my style sheet I don't edit just the hr tag.

I code it like this:

#content hr{} then if you you're not in the content div and use the HR it'll be a default hr.
Post #13821
Posted Tuesday, February 19, 2008 12:54 PM
Progenic Family

Progenic Family

Group: Old Skool
Last Login: Wednesday, August 13, 2008 10:03 AM
Posts: 869, Visits: 2,742
Hi guys

Thanks for the responses. Yeah I've styled the hr and want to "escape" it as you put it... or ideally what I wanted to do was class one that generated the normal HR..

hr.basic
{
   /* html stylee horiz rule */
}

Looks like that's not possible, so i'll just have to go through the code and add some selection to the ones i DONT want to be standard

Thanks.


Somebody get me some Dickens!
Post #13823
Posted Tuesday, February 19, 2008 4:14 PM


Progenic Family

Progenic Family

Group: Forum Members
Last Login: 2 days ago @ 7:35 PM
Posts: 525, Visits: 1,361
can't you try something like hr id="something"
and have a
#something {
default hr settings here
}

i well just my 2 cents never tried it but it works with everything i ever did use it for

sorry if it's not good just trying to help
Post #13825
Posted Wednesday, February 20, 2008 11:07 AM


Progenic Family

Progenic Family

Group: Old Skool
Last Login: Thursday, May 15, 2008 12:52 PM
Posts: 314, Visits: 2,401
That's what he's looking for pretty much infernal just needs to know how the default properties for the HR.
Post #13830
Posted Tuesday, February 26, 2008 8:45 PM


Progenic Crew

Progenic Crew

Group: Administrators
Last Login: Yesterday @ 1:17 PM
Posts: 2,372, Visits: 37,291
godhn (2/18/2008)
obviously I could class my designed one



 

Post #13877
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: proge, wax

All times are GMT -6:00, Time now is 9:03pm

Progenic BBS 2008
Execution: 1.391. 10 queries. Compression Enabled.