Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Go Back AdminFusion » Software & Tech » Software » SMF » Custom Skinning DRIVING ME NUTS!
Reply
 
LinkBack
Old 01-13-2007, 12:20 PM   #1
Veteran
 
DrkSnpr14's Avatar
 
Join Date: Sep 2006
Location: Alberta Canada
Posts: 920
DrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of lightDrkSnpr14 is a glorious beacon of light
Send a message via MSN to DrkSnpr14
Custom Skinning DRIVING ME NUTS!

OK, I'm working on creating my own custom skin. My problem is this; There are a lot of images that when inserted into the CSS, get doubled for other things. For example:

I want to use this image

as a category title image. When I plug it into the CSS, it comes up just fine, but unfortunately, it doubles as the background for the banner area. So, I've got this things repeating in the background behind my banner. I've been having the same problem with other parts of the forum with images being used on multiple parts.

I believe it's due to how the CSS is written, as it's got multiple parts grouped together. ie. .tablebg, tablebg2, ect... I have a theory that I can split these definitions, and have seperate images, allowing me to actually fully customize them. I haven't tried it just yet, but shouldn't this theoretically work? I'm just starting to go crazy

EDIT - Sort of answering my own posts, but parts of it have been working. I've experimented with splitting the CSS as so:

Code:
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td , .catbg3 , tr.catbg3 td
{
   background: url(http://basement.midashost.net/forums/Themes/grey/images/title-Background.jpg) #272727 repeat-x;
   color: #344152;
   padding-left: 10px;
   padding-right: 10px;
        background-position: top; 
        text-align: center;
}
.catbg2 , tr.catbg2 td
{
   background: url(images/catbg2.jpg) #A1BFD9 repeat-x;
   color: #344152;
   padding-left: 10px;
   padding-right: 10px;
}
Has become

Code:
/* This is used for categories, page indexes, and several other areas in the forum.
.catbg and .catbg2 is for boardindex, while .catbg3 is for messageindex and display headers*/
.catbg , tr.catbg td
{
   background: url(http://basement.midashost.net/forums/Themes/grey/images/title-Background.jpg) #272727 repeat-x;
   color: #344152;
   padding-left: 10px;
   padding-right: 10px;
        background-position: top; 
        text-align: center;
}
.catbg2 , tr.catbg2 td
{
   background: url(images/catbg2.jpg) #A1BFD9 repeat-x;
   color: #344152;
   padding-left: 10px;
   padding-right: 10px;
}
.catbg3 , tr.catbg3 td
{
   background: url(http://basement.midashost.net/forums/Themes/grey/images/title-Background.jpg) #272727 repeat-x;
   color: #344152;
   padding-left: 10px;
   padding-right: 10px;
        background-position: top; 
        text-align: center;
}
Now I can enter seperate definitions for .catbg1 and .catbg3, which where previously grouped together. All I did was copy the definition for the two, and pasted it underneath, and removed the opposites .catbg 1 or 3 from each others definitions. It's gotten me closer, and I still have some messing around to do.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Last edited by DrkSnpr14; 01-13-2007 at 12:47 PM. Reason: New information
DrkSnpr14 is offline   Reply With Quote
Old 01-22-2007, 08:21 PM   #2
Dave's not here...


 
SKETCHi's Avatar
 
Join Date: Dec 2005
Posts: 418
SKETCHi will become famous soon enough
Send a message via AIM to SKETCHi Send a message via MSN to SKETCHi
All you have to do to stop it from tiling is add that bit into it.

Code:
background-repeat: no-repeat;
However, instead of using a static image like that, you should create an image that can be tiled. By that, I mean an endless looping image that looks fine when it is repeated .

That way, when some one with a larger or smaller resolution than your own comes to visit, the page won't look odd .
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
SKETCHi is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Homepage for a Forum? transburgh Planning and Brainstorming 2 01-03-2007 12:43 AM

AdminFusion

All times are GMT +1. The time now is 07:20 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77