Dreamweaver Club Forums

Dreamweaver Club Forums (http://www.dreamweaverclub.com/forum//index.php)
-   Spry (http://www.dreamweaverclub.com/forum//forumdisplay.php?f=189)
-   -   Why does this happend (http://www.dreamweaverclub.com/forum//showthread.php?t=42741)

moviemastersdk 03-30-2012 12:21 PM

Why does this happend
 
I've created a spry menu bar, which looks GREAT in the design view
http://i42.tinypic.com/20ihxyr.png

but as soon as i go into live view
it shifts about 20px or so to the right
http://i41.tinypic.com/2u5b76f.png

Heres the code
Code:

ul.MenuBarHorizontal
{
        list-style-type: none;
        font-size: 22px;
        cursor: default;
        font-family: 'Bangers', cursive;
        color: #FFF;
        width: 750;
        height: 30px;
        float: left;
        margin-left: 74px;
        margin-bottom: 0px;
        margin-top: 8px;
        padding: -1px;
}

the div tag containing it, has no margin or padding, but is aligned to the center
can someone tell me why ?

gentleone 03-30-2012 04:24 PM

fix the width value... it misses a unit... px in your case. Also a negative padding value (-1px) is not allowed and it doesn't make sense either.

moviemastersdk 03-31-2012 11:23 AM

sometimes, you forget the simplest things in life...

and i really dont know why i thought -1px padding would fix it :D

thanks for the BIG help :)


All times are GMT. The time now is 01:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com