FAQ: How do I put a separator between articles or news items?

Moderator: mcsmom

Post Reply
User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

FAQ: How do I put a separator between articles or news items?

Post by HarryB » Fri Feb 17, 2006 11:16 pm

Ever wondered if there was an easy way to put a separator between a new items and articles? 

Well, there is a CSS class recognized by the Joomla! core that makes this a simple chore.  At the end of each content item, Joomla! generates the following statement:

 

The folowiing example puts a solid back line at the bottom of each news item and/or article:

.article_ seperator {
border-top: 1px solid #000000;
display: block;
width: 95%;         
margin-left: 10px;
margin-top:  10px;
}


And yes it is "seperator," not "separator."  ;)
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
pe7er
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by pe7er » Fri Feb 17, 2006 11:24 pm

very interesting, thanks for sharing!

only: you cannot use this method to get a border around the whole article, can you?

Wouldn't it be better if there was some
tag in front of the article and at the end?
then you could define a border around the article
or a "border-bottom: 1px solid #000000;" would give some article seperator.
Kind Regards,
Peter Martin (aka pe7er)
db8.nl - Joomla! implementation, programming, template and component development [Dutch]
>> Questions? Get help more easily with JTS-post Assistant: viewtopic.php?f=428&t=272481

User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

Re: FAQ: How do I put a separator between articles or news items?

Post by HarryB » Sat Feb 18, 2006 12:55 am

Yes, this would work, but this would have to be a change to the Joomla core code by the core developers.  Based on its name (i.e., article_seperator), seems to me the intended purpose was to alllow separation between articles, not drawing border around articles.

Also, I believe you can use the .contentpageopen class to draw a border around entire article.

And you are correct, you could use border-bottom...css I showed was just an example...there are many different ways to get whatever your desired effect...

http://www.halfvast.com shows the result of the example css I showed...
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
pe7er
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by pe7er » Sat Feb 18, 2006 10:40 am

Yes, alternatively I can change the code myself, but with every patch it might be needed to re-do it
I saw the ".contentpageopen" class in the past, it seems to be missing at my current installations (1.0.7)

btw: I like what you did with the box on your homepage....
Kind Regards,
Peter Martin (aka pe7er)
db8.nl - Joomla! implementation, programming, template and component development [Dutch]
>> Questions? Get help more easily with JTS-post Assistant: viewtopic.php?f=428&t=272481

Writer
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Dec 21, 2005 9:30 pm

Re: FAQ: How do I put a separator between articles or news items?

Post by Writer » Thu Mar 02, 2006 7:07 pm

Doesn't work. I added

Code: Select all

.article_ seperator {
   border-top: 1px solid #000000;
   display: block;
   width: 95%;        
   margin-left: 10px;
   margin-top:  10px;
}


To my template CSS and I get nothing!

I'm runniing 1.0.8

Ideas??

User avatar
pe7er
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 162
Joined: Thu Aug 18, 2005 8:55 pm
Location: Nijmegen, The Netherlands
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by pe7er » Thu Mar 02, 2006 7:33 pm

what's your URL?
Kind Regards,
Peter Martin (aka pe7er)
db8.nl - Joomla! implementation, programming, template and component development [Dutch]
>> Questions? Get help more easily with JTS-post Assistant: viewtopic.php?f=428&t=272481

User avatar
Joomlawebber
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Wed Aug 17, 2005 10:12 pm
Location: Denmark
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by Joomlawebber » Fri Mar 03, 2006 1:57 am

article_ seperator {<---------------THIS is the issue. There is space between _ and the seperator, and that is why it wont work.

/K
   
If there is a bird flue, what happened to the egg flue?

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by guilliam » Thu Mar 16, 2006 4:32 am

Joomlawebber wrote:article_ seperator {<---------------THIS is the issue. There is space between _ and the seperator, and that is why it wont work.

/K
 


good eye!



@Writer, was this the issue?

- g
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

Writer
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Dec 21, 2005 9:30 pm

Re: FAQ: How do I put a separator between articles or news items?

Post by Writer » Thu Mar 16, 2006 12:36 pm

Actually it wasn't. There was a blank space between the underscore and the word sseperator.

However, their post made me focus on that part of the script.

Thanks!

User avatar
celaine
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jul 04, 2006 1:50 am
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by celaine » Fri Feb 09, 2007 7:20 pm

How do you adjust this to use an image?

:-[ oops! I just found my answer! I'll post it here in case anyone else comes looking for the same thing...


.article_seperator {
display : block;
height : 15px;
background-image : url(../images/separator.gif);
background-repeat : repeat-y;
}
Last edited by celaine on Fri Feb 09, 2007 7:24 pm, edited 1 time in total.

User avatar
celaine
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jul 04, 2006 1:50 am
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by celaine » Fri Feb 09, 2007 8:09 pm

Ahhh...I do have another question, though. One site I inserted a line divider between articles is showing two mambots below the line that I want to appear above the line, with the content of the article (it's an author link and a save this link related to the article). You can see what I am talking about here:
http://www.nationalcapitolsquadron.org/ ... e&Itemid=1
Attachments
screenshotlineprob.jpg

User avatar
crow
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Mon Aug 29, 2005 5:17 pm
Location: Austria
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by crow » Sun Feb 18, 2007 4:33 pm

Is there a way to add an Vertical seperator also?? I have frontpage with 2 columns and sometimes News Title is owerlaped ower other row and making frontpage looking a bit nasty....

Thnx :)
BosanskoHercegovacki Chat Komjuniti
http://www.chat.ba

tarr
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Nov 30, 2006 12:14 pm
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by tarr » Sun Mar 18, 2007 12:50 pm

HarryB wrote:Ever wondered if there was an easy way to put a separator between a new items and articles? 

Well, there is a CSS class recognized by the Joomla! core that makes this a simple chore.  At the end of each content item, Joomla! generates the following statement:

 

The folowiing example puts a solid back line at the bottom of each news item and/or article:

.article_ seperator {
border-top: 1px solid #000000;
display: block;
width: 95%;         
margin-left: 10px;
margin-top:  10px;
}


And yes it is "seperator," not "separator."  ;)


Nice, but this won't work on my site :(
http://www.libra-counseling.com/

User avatar
cdx
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Sun Jan 01, 2006 11:44 pm
Contact:

Re: FAQ: How do I put a separator between articles or news items?

Post by cdx » Tue Mar 27, 2007 6:59 am

Doesn't work here...

I wonder why...
Advanced SEO - http://www.advanced.co.il/
Tel Aviv Visitor Guide - http://www.telavivvisitorguide.com

Plaidfox
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Fri Feb 08, 2008 5:17 pm

Re: FAQ: How do I put a separator between articles or news items?

Post by Plaidfox » Fri Feb 08, 2008 5:23 pm

HarryB wrote:Ever wondered if there was an easy way to put a separator between a new items and articles? 

Well, there is a CSS class recognized by the Joomla! core that makes this a simple chore.  At the end of each content item, Joomla! generates the following statement:

 

The folowiing example puts a solid back line at the bottom of each news item and/or article:

.article_ seperator {
border-top: 1px solid #000000;
display: block;
width: 95%;         
margin-left: 10px;
margin-top:  10px;
}


And yes it is "seperator," not "separator."   ;)


(Using Joomla 1.5)
Actually, it is separator.  If you look at the page source, joomla automatically puts in:    After fixing the space issue, and still having it not work correctly, my boss noticed the misspelling.  So, your css code should be:

.article_separator {
border-top: 1px solid #000000;
display: block;
width: 95%;         
margin-left: 10px;
margin-top:  10px;
}


Hope this helps!  ;D


Post Reply