• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • DIV Tags don't take the Attribute background-image From CSS

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: DIV Tags don't take the Attribute background-image From CSS

    • Issue Tools
      • View Changes
    1. issueid=1592 May 22, 2010 11:35 AM
      Mokonzi Mokonzi is offline
      Senior Member
      DIV Tags don't take the Attribute background-image From CSS
      DIV Tags don't take the Attribute background-image From CSS

      The new DIV Tags don't take the Attribute background-image From CSS (for some reason ignored) but when inserted as a part of the style attribute they do show. Positioning and size all work within the CSS.

      The output of the div when using a class is class="vw-div myclassname", but as vw-div doesn't seem to appear within the CSS templates, I can't see whether that is somehow clearing or nullifying the background image.

      Any reason why this is happening? Not sure if it's a bug or intended.
    Issue Details
    Issue Number 1592
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category BB-Code Parsing
    Status Not a Bug
    Priority 3 - Loss of Functionality
    Affected Version 3.0.0 RC 3
    Fixed Version (none)
    Milestone VaultWiki 3.0.0
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags (none)




    1. May 22, 2010 12:17 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Additionally, it seems to ignore a second backgroud image if nested inside a div tag. Is that normal?
      Reply Reply  
    2. May 22, 2010 1:18 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please link to an example.
      Reply Reply  
    3. May 22, 2010 2:06 PM
      Mokonzi Mokonzi is offline
      Senior Member
      http://www.thexuniverse.com/showwiki/Test+Page is an example of both. The CSS code (added to the additional.css template) is:
      Code:
      .navsection {
      background-color:#000000;
      background-image:url('http://www.thexuniverse.com/images/txu/Section.png');
      background-repeat:no-repeat;
      background-position:center center;
      height:150px;
      width:150px;
      veritcal-align:bottom;
      text-align:center;
      }
      Reply Reply  
    4. May 22, 2010 2:36 PM
      pegasus pegasus is offline
      VaultWiki Team
      Take out the single quotes. According to Inspect Element, the CSS class navsection doesn't even have that line, so it's possible it's not validating.
      Reply Reply  
    5. May 22, 2010 2:50 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Just tried that suggestion,but still didn't work without throwing the style attribute back in.
      Reply Reply  
    6. May 22, 2010 3:28 PM
      pegasus pegasus is offline
      VaultWiki Team
      The vertical-align property has a typo. This makes the entire .navsection class invalid.
      Reply Reply  
    7. May 22, 2010 5:16 PM
      Mokonzi Mokonzi is offline
      Senior Member
      Indeed, and adjusting that allowed it to read the background image, but it's still not taking on the second div's image, which I though was possible (to stack the images provided they were invisible). It's stripped from the page before it's loaded (I checked source)
      Reply Reply  
    8. May 22, 2010 5:50 PM
      pegasus pegasus is offline
      VaultWiki Team
      Again check for typos, also check that the option "Automatically parse links in text" is NOT turned on, since this can break an absolute image path by wrapping it with URL tags.
      Reply Reply  
    9. May 23, 2010 2:47 AM
      Mokonzi Mokonzi is offline
      Senior Member
      Spot on . Both were contributing factors Thanks for the help again peg
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 12:36 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2023 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2023 DragonByte Technologies Ltd.
    Copyright © 2008 - 2013 VaultWiki Team, Cracked Egg Studios, LLC.