-
AuthorPosts
-
railer Friend
railer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
June 19, 2013 at 2:09 pm #188331Hi!
Just looking for some pointers on customizing the pagebreak table of contents (TOC) styling in JA Travel. What files/css styles do I need to modify to float it right and put a thin ruled box around it?
I searched in this forum but didn’t find anything.
Thanks in advance for your help.
Railerphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
June 20, 2013 at 3:02 pm #496400Hi railer,
Can you make a snapshot of what you want to accomplish?
I still don’t get your ideas about “the pagebreak table of contents (TOC) styling in JA Travel”.railer Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
June 29, 2013 at 10:34 am #497360Hi Leo — thanks for your reply. Actually, my site — which isn’t live just yet — is displaying the TOC above the article in a column aligned left, and centered under the TOC is the text “Page 1 of 15”.
I was under the impression that the default TOC is supposed to display in a small ruled box inset at the right of the main article text? Why isn’t that how mine is displayed in JA Travel? More importantly, how can I fix this, or change to the right inset position?
The attachment is how it looks now, not what I want to accomplish — which is just to get the default style and position.
Thanks
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
July 1, 2013 at 4:39 am #497437Hi railer,
<blockquote>I was under the impression that the default TOC is supposed to display in a small ruled box inset at the right of the main article text? </blockquote>
On our JA Travel demo hosting, the TOC style looked the same with our overriden layout when I tried to use the default article layout of Joomla com_content.<blockquote>Why isn’t that how mine is displayed in JA Travel? More importantly, how can I fix this, or change to the right inset position?</blockquote>
Pls backup your files & try to put below codes into the end of templatesja_travelcsstemplate.css :#article-index {
overflow: hidden !important;
/*Your extra styles if needed*/
}#article-index ul {
float: right;
}This will let the TOC aligned on the right. Clear JAT3 cache after saving changes.
1 user says Thank You to phong nam for this useful post
railer Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
July 1, 2013 at 10:59 am #497490Thanks Leo,
Thanks a good start. Main problem now is that the article-index div is still above the main content. I need it to float at the right side within the main content, as I believe it does in the default settings.
Also, the pagenavcounter line ought to be within the article-index div so that it is contained within the unit floated to the right.
I haven’t used the article index very much, myself, but when I did, it displayed inset into the text by default, not above it. Strange.
railer Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
July 1, 2013 at 11:48 am #497499Well, I got it to display how I wanted it.
Here is my final css:
#article-index {
overflow: hidden !important;
/*Your extra styles if needed*/
width: 180px;
border: 1px #CCCCCC solid;
margin: 0 0 12px 12px;
padding: 12px;
float: right;
}I left the page number text centered above the main content. Made sense once I saw the TOC floated right. I also reduced the pagination font size, which at h2 was too big for my taste.
Thanks for your help.
Railerphong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
July 1, 2013 at 1:25 pm #497506Hi railer,
No matter. It is nice that you got perfect with your TOC css styles.
Leo
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 2 voices, and was last updated by phong nam 11 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Customizing display of pagebreak TOC box
Viewing 7 posts - 1 through 7 (of 7 total)