The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

CSS script conflict

View previous topic View next topic Go down

Solved CSS script conflict

Post by BlTEBlTE on February 28th 2012, 10:05 pm

I have these 2 codes conflicting - only 1 applies (MENU takes higher priority then post background color)
Code:
.ul.linklist li a img
      {
        filter:alpha(opacity=100); 
        -moz-opacity: 1.0; 
        opacity: 0.5;
      }
ul.linklist li a img:hover
      { 
        filter:alpha(opacity=70); 
        -moz-opacity: 0.85; 
        opacity: 1.0; 
        position: relative; 
        top: -2px;
      }
Code:
.post {
background-color: #E8E8E8;
}

Any solution to apply both?


Last edited by BlTEBlTE on February 29th 2012, 6:02 pm; edited 1 time in total

BlTEBlTE
New Member

Posts : 19
Reputation : 1
Language : English, Latvian, Russian, c++, Corel Draw

Back to top Go down

Solved Re: CSS script conflict

Post by LGforum on February 29th 2012, 1:11 am

They aren't in anyway related.

Why have you come to the conclusion that these two are conflicting?

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: CSS script conflict

Post by BlTEBlTE on February 29th 2012, 7:46 am

... if I leave only Menu code - it works, only post background color code - it also works...., but if I write both of them in CSS box - works only MENU

look at this: http://atomic.forumo.org/t33-literature
You can see that Menu works, but posts are not in (+/-) white background which means the code is not applieing somehow....

If MENU comstumizing code gets deleted from CSS box - instantly post background code applies...


BlTEBlTE
New Member

Posts : 19
Reputation : 1
Language : English, Latvian, Russian, c++, Corel Draw

Back to top Go down

Solved Re: CSS script conflict

Post by kirk on February 29th 2012, 2:38 pm

so remove one hit save and see if it's the turn out you want, if not add the other back and get rid of the other one.

i dont understand you going to have to make some screen shots and point things out of whats wrong, and then they way you are trying to get it.

You may not even need css for this and just be able to use your colors menu? not sure?


Try to explain all you can

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: CSS script conflict

Post by LGforum on February 29th 2012, 2:45 pm

Are you sure your not putting them inside other codes by accident?
Make sure they are completely separate from everything else and each other. Put a few line breaks between them.

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Solved Re: CSS script conflict

Post by kirk on February 29th 2012, 2:54 pm

The color he has for the css post background is almost gray.
so we know thats not working because he has black and tan.

so my guess is he would need to change the colors to what he wants in these codes? But i still dont completely understand what colors or sections he means either. and the first code he has thats for navbar hover images???

this is why you only use css where it's needed, most of the colors can all be done right in the color list,

Keep in mind i really am not completely understanding his problem. So the better he explains and adds screen shots the better for us to help thumright



Code:
body {
    background-attachment: fixed;
    background-color: #292929;
    background-image: url("http://i40.servimg.com/u/f40/17/30/15/69/od1c4t10.jpg");
    color: #5E5D58;
    font-family: Verdana,Arial,Helvetica,sans-serif;
    font-size: 10px;
    height: auto;
    padding: 10px 0;
}

Code:

#wrap {
    background-color: #101011;
    border: 1px solid #000000;
    margin: 0 auto;
    min-width: 768px;
    padding: 5px;
    width: 1000px;
}

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Solved Re: CSS script conflict

Post by BlTEBlTE on February 29th 2012, 6:01 pm

@LGforum wrote:Are you sure your not putting them inside other codes by accident?
Make sure they are completely separate from everything else and each other. Put a few line breaks between them.
Very Happy I do not put the functions in another function's namespace...

hehe..., just fixed everything..., removed all comments and it works.... Very Happy
Problem was - I wrote line comments in c++ style which, as it seems, does not work on CSS that way. Probably basic CSS ignores all the parts in code which is wrong (//comment) accidentally taking in ignore space the ".post()" fuction as well..., my BAD...

Thx for help anyways...!
SOLVED

BlTEBlTE
New Member

Posts : 19
Reputation : 1
Language : English, Latvian, Russian, c++, Corel Draw

Back to top Go down

View previous topic View next topic Back to top


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