![]() |
Putting "categories" and "published by" in the same line
1 Attachment(s)
Hello,
In article preview we have "published by" and the "categories" each one on his own line. I want to put them in an table ( that i've managed to do it) and to be both on the same line. In the image i don't manage to put the categorie in the same line with the "published by", could anyone help me with that. |
Can you post the code you have added to do this along with about 2 lines above and below your added code so we can see where in the template it is. Please post the template name also and use code tags.
|
I've edited the CSS Templates -> vbcms.css and changed the .cms_article_username into this
Code:
.article_username_container .article_username { After that i've changed the order of things in VBulletin CMS Templates -> vbcms_content_article_preview into that Code:
{vb:raw css} |
It would be much easier to see what is going on if we had a link to the page.
|
I am sorry but the test server is on local machine is not up. The only modification is the one with ".cms_article_username" from the CSS Template. Or you you think is better that way show me how to do it on an standard board, just to put categories and publised by on the same line.
|
You need to set .cms_article_username to only 50% (and you only need one width in there) and also float it right and make the display type inline-block. The other one, you need to float left and also make the display type inline-block. Also, since the username needs to be floated right, you actually need to have the div for that before the div for the categories.
|
I've put the site up, because i didn't manage to do what you said to me. The link is http://test.games-area.ro/content.php, i hope this will make you understand better what i want
|
Remove the clear statement from .cms_article_section_location
|
When i make the image 100% the categories goes underline, i want it to be on the same line (like the published by ). I made the width back to 100% to see it more clear
|
You need to add the background to the Categories strip also. What you really should do is have one div that has the background and is 100%, then inside that div, have a div for the categories and the div for the Published by.
|
that was my first choise but i didn't manage to make it work, and I really don't know CSS and my knowledge are verry limited in that aria. I will put that version into the test site and i will tell you when i'm finished , maybe you will help me from that point.
|
You can take a look now and see what is wrong, the link is http://test.games-area.ro/content.php.
|
You don't have the Categories in the div you created (article_hdr). And this doesn't exist:
<img width="90" height="26" src="maxcon_assets/img/box_hdr_4.gif" class="article_hdr_icon"> |
I modified that too, now it looks like i want it, but if you take a carefull look to the categories you can see that when you hover the mouse over the categories you have to point him verry carefull to change his appeareance. Why is that and how can i repair that.
|
float the right bar right:
HTML Code:
.article_hdr_bar { float: right; padding-right: 10px; padding-top: 3px;} |
everything is perfect, thank you verry much.
|
Another question if I may , on the same test site as above how can I put the title and the published by on the same line ? It looks different for the first example. I hope i was clear. i made the aproppiate modification to the test site. Thanks
|
You'll need to rewrite the template to do that. The title is using an <h> tag and it's in it's own <div> separate from the published by stuff. You'll have to put them both in the same <div> and then adjust the CSS to allow them to both be on the same line.
|
It is ok now i made a separate div to specify the location of the localdate and put it inside the h3 tag, I hope this is the best way :). Thanks for the help.
If I may another question inside this thred: It is posiblle to use a fixed template in the CMS and a fluid one in the forum section ? and it it is you can give me a hint to start this . Thanks! |
You may create a new style that is fixed and then apply it to the CMS via Home > edit Section > Style
|
yes but that will make only the section on fixed template without the widgets parts, or the header and footer.
|
What do you mean? That is how you would apply a different style to the CMS area. Alternately, just post the CSS to make the pages fixed via a condition in one of the templates.
|
It works , is fine now. I thought that this option will not affect the rest of the page, but you are right :). Thanks.
|
so how can I change this
Code:
<div class="article_hdr_icon"> |
Quote:
|
All times are GMT. The time now is 05:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|