The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

images as borders for categories?

4 posters

Go down

Solved images as borders for categories?

Post by longstormicus Tue 22 Sep - 4:09

Technical Details


Forum version : #phpBB3
Position : Founder
Concerned browser(s) : Mozilla Firefox, Google Chrome, Safari
Who the problem concerns : All members
Forum link : http://outcastwarriors.forum-motion.com/forum

Description of problem

Hello!

I am modifying the appearance of my forum and I was wondering if it is at all possible to have images as borders for my categories AND have them all have their own individual images.
For example, the category border for "The Night Sky" would be purpley with stars, "The Clans" would probably be some nature thing, and so on.

Help would be greatly appreciated! We really want to get the website up and going again, and completing the appearance is one step in a list.

Thank you very much!


Last edited by longstormicus on Wed 23 Sep - 20:21; edited 1 time in total
longstormicus
longstormicus
New Member

Posts : 8
Reputation : 1
Language : English

http://outcastwarriors.forum-motion.com/forum

Back to top Go down

Solved Re: images as borders for categories?

Post by Ange Tuteur Tue 22 Sep - 13:01

Hi @longstormicus,

You want to add a background to the blue part of your categories, correct ? You already have the classes setup for your categories, so all you need to do is add a background image like this :
Code:
.forabg.the-clans {
  background:url('BG_IMAGE') repeat 0 0 #0076B1;
}

Just replace BG_IMAGE with your background image.

If any problems let me know. Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: images as borders for categories?

Post by KpuCk0 Tue 22 Sep - 14:04

S/He wants every category with different picture.I tried to do something for this request, but without success. Sad
KpuCk0
KpuCk0
Forumember

Male Posts : 871
Reputation : 171
Language : Bulgarian, English
Location : Pleven, Bulgaria

http://www.lfsdrift.org

Back to top Go down

Solved Re: images as borders for categories?

Post by longstormicus Tue 22 Sep - 22:57

Ange Tuteur wrote:Hi @longstormicus,

You want to add a background to the blue part of your categories, correct ? You already have the classes setup for your categories, so all you need to do is add a background image like this :
Code:
.forabg.the-clans {
  background:url('BG_IMAGE') repeat 0 0 #0076B1;
}

Just replace BG_IMAGE with your background image.

If any problems let me know. Smile

It's BEAUTIFUL! It's just as I wanted. Very Happy
I have one question: I see you have the hex color for my base category background in the code. If that changes, will I need to alter the code?

EDIT: It doesn't appear to be working for Outer Territories, the category at the bottom. It's one of two that isn't arranged side-by-side like the other categories. Is that why it isn't taking affect?
longstormicus
longstormicus
New Member

Posts : 8
Reputation : 1
Language : English

http://outcastwarriors.forum-motion.com/forum

Back to top Go down

Solved Re: images as borders for categories?

Post by Ange Tuteur Wed 23 Sep - 10:49

If you want you can remove the hex color code from the value. It's just a fallback you can place in case the image doesn't load.

Oh, that's because that one doesn't have a class name for it. Remember this script ? Just edit that to include the "outer territories" category. Wink
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: images as borders for categories?

Post by longstormicus Wed 23 Sep - 20:21

Oooooooh right, I should have remembered. Now that I've done that, NOW it works right.
Thank you SO much! I'll mark the topic "Solved." Very Happy
longstormicus
longstormicus
New Member

Posts : 8
Reputation : 1
Language : English

http://outcastwarriors.forum-motion.com/forum

Back to top Go down

Solved Re: images as borders for categories?

Post by SLGray Wed 23 Sep - 20:31

Topic solved and archived



images as borders for categories? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51554
Reputation : 3524
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum