Adding <div> before BODY

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • foxtrialer
    New Member
    • Apr 2008
    • 9

    [vB4] Adding <div> before BODY

    Hi guys. I`m trying to re-style my old vbulletin style for a new version. But i`m a little bit confused, can`t find what i want.
    As i see:
    html {
    background: #fff;
    }
    This will make background white, its ok, but i need to put image right after this layer, it`s header image, & its width 1900 px, so i can`t put it in <div class="above_body">.

    Plz help me ,how to realize this?
  • Lynne
    Former vBulletin Support
    • Oct 2004
    • 26255

    #2
    You can add a background image into a background tag:
    Code:
    html {
    background:#ffffff url(images/my_image.png) no-repeat scroll left center;
    }

    Please don't PM or VM me for support - I only help out in the threads.
    vBulletin Manual & vBulletin 4.0 Code Documentation (API)
    Want help modifying your vbulletin forum? Head on over to vbulletin.org
    If I post CSS and you don't know where it goes, throw it into the additional.css template.

    W3Schools &lt;- awesome site for html/css help

    Comment

    • foxtrialer
      New Member
      • Apr 2008
      • 9

      #3
      thnx but it`s not what i want to do.
      html will use image, not only #fff, & this is a main problem, coz i can`t add image over it

      Comment

      • Lynne
        Former vBulletin Support
        • Oct 2004
        • 26255

        #4
        I'm not sure exactly what you want, but have you read Don's blogs? vB4: Skinning Your Forum in 10 Easy Steps and StyleVar Visual Dictionary for Forum, Blog, and CMS (PDF Documents) Those are a bit behind (I think things have changed a bit since 4.0 Gold), but they may help. You may also want to post at vb.org in the Graphics help forum.

        Please don't PM or VM me for support - I only help out in the threads.
        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
        Want help modifying your vbulletin forum? Head on over to vbulletin.org
        If I post CSS and you don't know where it goes, throw it into the additional.css template.

        W3Schools &lt;- awesome site for html/css help

        Comment

        • cellarius
          Senior Member
          • Aug 2005
          • 4586
          • 3.8.x

          #5
          Neither do I know exactly what the OP wants to achieve, but what he implies in the thread title is just not possible (having a div before body). That's as invalid as it gets.

          Comment

          • foxtrialer
            New Member
            • Apr 2008
            • 9

            #6
            Click image for larger version

Name:	need..jpg
Views:	1
Size:	24.2 KB
ID:	3677939

            here example

            Comment

            • Lynne
              Former vBulletin Support
              • Oct 2004
              • 26255

              #7
              It looks to me like you may need to edit the header template to get something like what you are showing (could be something as simple as adding a div after the body tag, closed in the footer right about the closing body tag). You *may* be able to play with the css to get that, but I haven't tried anything like that. If you have firebug, you can play with your css that way.

              Please don't PM or VM me for support - I only help out in the threads.
              vBulletin Manual & vBulletin 4.0 Code Documentation (API)
              Want help modifying your vbulletin forum? Head on over to vbulletin.org
              If I post CSS and you don't know where it goes, throw it into the additional.css template.

              W3Schools &lt;- awesome site for html/css help

              Comment

              Related Topics

              Collapse

              Working...