css - centering a div -



css - centering a div -

i trying center div due beingness block , general text or image beingness inline not work...the stuff within div gets centered not div itself...how can this? ive tried bunch of things google couldn't work...

http://dev.icalapp.rogersdigitalmedia.com.rogers-test.com/menutest.htm

the code of involvement below:

<head> <script type="text/javascript"> var mygallery=new fadeslideshow({ wrapperid: "fadeshow1", //id of blank div on page house slideshow dimensions: [500, 360], //width/height of gallery in pixels. should reflect dimensions of largest image imagearray: [ ["01.jpg"], ["02.jpg"], ["03.jpg"], ["04.jpg"] //<--no trailing comma after lastly image element! ], displaymode: {type:'auto', pause:2500, cycles:0, wraparound:false}, persist: false, fadeduration: 500, //transition duration (milliseconds) descreveal: "ondemand", togglerid: "" }) </script> </head> <body> <div id="fadeshow1"></div> </body>

in css

#fadeshow1{ margin-left: auto; margin-right: auto; width: width of div }

css

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -