Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default CSS - overriding default style not working

    Okey doke site is here

    http://darncat.com/

    The categories and the information box are the issue i cannot seem to override the css, for the bottom of the boxes, they are currently showing as beige rather than cream (categories), blue (information)

    I have successfully over ridden the tops and middles of those boxes, but using the same technique doesn't work for the bases.

    The code I am using for the bottom of the category box is

    Code:
    #categories .leftBoxContainer { 
    background-image: url("../images/categories-bottom-cream.jpg");
    }
    which should work, as I used a very similar code to change the colour of the top
    Webzings Design
    Semi retired from Web Design

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS - overriding default style not working

    I do not see where you have defined a position for this as bottom or any other location???
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: CSS - overriding default style not working

    Kobra - I am not understanding your response.

    The beige bottom is displayed using the following code

    .leftBoxContainer {
    background-image: url("../images/sidebox-bottom.jpg");
    .....
    }

    so to override it for the categories box, i should be able to override it with


    #categories .leftBoxContainer {
    background-image: url("../images/categories-bottom-cream.jpg");
    }

    The above code is in the stylesheet, but isn't being seen for that element so i am obviously doing something wrong

    I used similar code for the tops and middles and they worked.

    If the others can be overridden via css and using the id, then surely the bases should be too?
    Webzings Design
    Semi retired from Web Design

  4. #4
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: CSS - overriding default style not working

    surely the bases should be too
    .leftBoxContainer is the whole box not just the "base" and why I looked for a "position" Of course I do not know what the image looks like but if taller than some/most side boxes than by default it aligns to the top of the container and then your bottom image is bleed off

    Might have a look at how this is done in the future zen template
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: CSS - overriding default style not working

    Quote Originally Posted by kobra View Post
    .leftBoxContainer is the whole box not just the "base" and why I looked for a "position" Of course I do not know what the image looks like but if taller than some/most side boxes than by default it aligns to the top of the container and then your bottom image is bleed off

    Might have a look at how this is done in the future zen template
    I fully understand leftBoxContainer is the whole box, but the default beige one works, so shouldn't the override work as it will use the position from the default .leftBoxContainer.

    Infact, if i copy the entire default .leftBoxContainer to #container .leftBoxContainer changing the image name, it still doesn't work.
    Webzings Design
    Semi retired from Web Design

  6. #6
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: CSS - overriding default style not working

    Ok solved, but i don't understand why


    changed

    #categories .leftBoxContainer

    to

    #categories.leftBoxContainer

    note no space between the id and class

    But how come, when I was overriding the tops

    #categories .leftBoxHeading

    works fine? and should i be removing the space on those?

    Dammit I thought i had finally got a handle on CSS
    Webzings Design
    Semi retired from Web Design

 

 

Similar Threads

  1. Replies: 0
    Last Post: 14 Oct 2014, 08:27 PM
  2. CSS default style for buttons works for some only
    By safeg in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 1 Dec 2010, 11:20 AM
  3. TEXT_APPROVAL_REQUIRED overriding not working
    By Ronson in forum General Questions
    Replies: 2
    Last Post: 23 Mar 2008, 02:03 AM
  4. CSS question - class defined multiple times in default style sheet
    By ksolito in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Feb 2008, 01:49 AM
  5. New install CSS not working with default
    By Nouvel Amour in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 7 Nov 2006, 04:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg