- This topic is empty.
-
AuthorPosts
-
June 2, 2013 at 5:27 am #45155SamParticipant
Hi all,
I write a web which want to show part of an article folowings:
Title:How to learn Chinese easily?
Tag: Learn Chinese,Chinese language,learn language
text: Many foreign students who learn Chinese in Shanghai are usually meet with the fact called national language of Shanghai,which is not widely spoken as imagined.Different cities different local dialects make more difficult to learn Chinese. But if you choose a Mandarin Morning Chinese school in shanghai you will learn mandarin very easily and efficiently,followings are tips:For example,if you just want to show title and tag,then what is the css?
I really want to know how to achieve this kind of effect,if you know how to do that,please let me know.
I am so appreciate!
Many thx!June 2, 2013 at 6:00 am #137313jimmyParticipantCSS is for styling existing content, not determining it.
There is a
content
property, but its purpose is different and it shouldn’t ever be used to create actual content on the website.> if you just want to show title and tag
But, if you mean how to display only the title and tag parts of the already existing post/article, it’s done by
display: none;
property.That’s pointless anyways, as HugoGiraudel said below.
Could you explain what do you have in mind?
June 2, 2013 at 10:55 am #137344Kitty GiraudelParticipantDon’t output content that won’t ever be displayed: it’s useless. Make your backend code output only what you need.
June 2, 2013 at 10:57 am #137345Paulie_DMember>Don’t output content that won’t ever be displayed: it’s useless. Make your backend code output only what you need.
Absolutely.
June 2, 2013 at 11:07 pm #137372SamParticipantHi guys,you will see this link : [http://qinghe1988.hi.blog.163.com/](http://qinghe1988.hi.blog.163.com/ “Look right of blog”) the right of this blog is articles and you just see the part of article, when you click this title you will see another web or full articles. i want to see this, what can i do ?
June 2, 2013 at 11:53 pm #137391chrisburtonParticipantI hate when everything is quiet and music starts blaring from websites. I thought that nonsense was over.
June 3, 2013 at 6:47 am #137413jimmyParticipantSo, basically… Instead of displaying excerpts of articles you want to display full articles right away?
June 3, 2013 at 6:52 am #137415Paulie_DMemberNo…I think he’s after a CMS /Blof Platform solution where the ‘blog’ entries on the main page have titles / subjects and excepts. Clicking the title takes you to the full article etc.
June 3, 2013 at 7:20 am #137419jimmyParticipantAh, right!
Well, given that you already use a blog platform of some sort, there should be an option of showing only the excerpts, similar to WordPress or achieving that through modifying template’s JS like in Blogger.
You could always use [Line Clampin’](https://css-tricks.com/line-clampin/ “Line Clampin'”), but it’s not *exactly* what you want and is generally poorly supported.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.