PDA

View Full Version : Formating/Coding Help Needed - Wordpress



MarkChap
11-12-2009, 10:13am
I am using wordpress to manage my blog/website and have a little issue.

I am using this code to embed a slideshow in a Widget area, the widget spans the width of my page and the current code sets the widget to the left.
What code would I add to this, to load the slide show to the centre of the widget area

Code
<div style="width:480px; text-align: center;"><embed type="application/x-shockwave-flash" wmode="transparent" src="http://w170.photobucket.com/pbwidget.swf?pbwurl=http://w170.photobucket.com/albums/u263/Bay_Firey/Canada/396a7f65.pbw" height="360" width="480"><a href="http://photobucket.com/slideshows" target="_blank"><img src="http://pic.photobucket.com/slideshows/btn.gif" style="float:left;border-width: 0;" ></a><a href="http://s170.photobucket.com/albums/u263/Bay_Firey/Canada/?action=view&current=396a7f65.pbw" target="_blank"><img src="http://pic.photobucket.com/slideshows/btn_viewallimages.gif" style="float:left;border-width: 0;" ></a></div>

And my website is located Here (http://photographingcq.com)

Any help would be greatly appreciated

Thanks in advance

Tannin
11-12-2009, 5:08pm
Hi Mark.

Replace:



<div style="width:480px; text-align: center;">


With:


<div style="width:480px; margin-left: auto; margin-right: auto;">

MarkChap
11-12-2009, 11:30pm
Thanks heaps Tony, appreciated

MarkChap
11-12-2009, 11:32pm
Worked perfectly

Thank You