Results 1 to 10 of 21

Hybrid View

  1. #1

    Default Re: What template to add additional divs outside of mainWrapper??

    Could anyone even just direct me to a website which has similar css to what I'm trying to get and I could look through FF to see what their css is like

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: What template to add additional divs outside of mainWrapper??

    My site does shadows like this, except that I put the extra divs inside mainWrapper. Of course, the locations of parts of the CSS had to be switched. It shouldn't make a difference, but you might try it and see...

  3. #3
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: What template to add additional divs outside of mainWrapper??

    None of this worked can someone help figure out why.

    Here is what I put in my stylesheet.css
    #mainWrapperRight {
    background-image:url(http://www.touchcrew.com/touchshop/i...s/dropsh.gif);
    background-position: top right;
    background-repeat: repeat-y;
    }

    #mainWrapper {
    background-color: #ffffff;
    text-align: left;
    width: 850px;
    vertical-align: top;
    }


    And this is what I put in my tpl

    ?>
    <div id="mainWrapperRight">
    <div id="mainWrapper">
    <?php
    /**
    * prepares and displays header output
    *
    */
    require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: What template to add additional divs outside of mainWrapper??

    Two points that may help:

    There is no reason I know of to use a full http filepath for the background image. Using
    background-image: url(../images/dropsh.gif);
    will get the desired results, and allow your code to be portable to a test/development environment as well.

    It may be necessary for proper function to do the divs in the same way I did them: #mainWrapper with #mainWrapperRight inside it.
    Give #mainWrapper the desired width and margin: auto;
    Give #mainWrapperRight width: 100%;

    Code:
    #mainWrapper {
        background-color: #ffffff;
        text-align: left;
        width: 850px;
        margin: auto;
        vertical-align: top;
        }
    
    #mainWrapperRight {
        width: 100%;
        background-image: url(../images/dropsh.gif);
        background-position: top right;
        background-repeat: repeat-y;
        padding-right:7px; /*or whatever the shadow width is*/
        }
    PHP Code:
    ?>
    <div id="mainWrapper">
    <div id="mainWrapperRight">
    <?php
    /**
    * prepares and displays header output
    *
    */
    require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE $current_page_base,'common'). '/tpl_header.php');?>
    and don't forget to add an extra </div> at the end of the file to properly close the new div.
    Last edited by gjh42; 28 Oct 2007 at 07:59 AM.

  5. #5
    Join Date
    Jul 2005
    Location
    Brooklyn NY
    Posts
    507
    Plugin Contributions
    0

    Default Re: What template to add additional divs outside of mainWrapper??

    thank you for the posting a reply it worked but if you look at the site why is it inside and not on the out side and why does it not go from top to bottom? here is the site http://www.touchcrew.com/touchshop/

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: What template to add additional divs outside of mainWrapper??

    You don't see it from top to bottom because you didn't add the
    padding-right:7px; /*or whatever the shadow width is*/
    to #mainWrapperRight as recommended; also, the logo is a fixed width, so you need to expand #mainWrapper by the width of the shadow.

    To center the page in the screen, add margin: auto; to #mainWrapper as posted above.

  7. #7
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: What template to add additional divs outside of mainWrapper??

    Is it possible to add a shadowbox style to images? And if so, how would I go about doing it?

    thanks

  8. #8
    Join Date
    Sep 2007
    Posts
    329
    Plugin Contributions
    0

    Default Re: What template to add additional divs outside of mainWrapper??

    Hi everyone,

    I was just reading this thread again because I'm trying to find out how to make the shadowbox work in IE like I have it working in FF now. After reading all the posts I now know what a "dumb" post I made before this one lol.

    Sorry to be such an idiot

 

 

Similar Threads

  1. placing footer outside of mainwrapper
    By gotduhka in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Jan 2012, 05:48 AM
  2. Move Sideboxes Outside of MainWrapper
    By acreativepage in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 9 Oct 2009, 03:06 AM
  3. Adding divs outside main container.
    By david.buckley in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 13 Dec 2007, 01:05 AM
  4. How do I add divs to the templates?
    By TheMusician in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Nov 2007, 10:35 PM
  5. Logowrapper outside mainwrapper!!!
    By alexan in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 2 Jun 2007, 05:18 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