PDA

View Full Version : Formating/Coding Help Needed - Wordpress



MarkChap
11-12-2009, 12:13pm
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, 7:08pm
Hi Mark.

Replace:



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


With:


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

MarkChap
12-12-2009, 1:30am
Thanks heaps Tony, appreciated

MarkChap
12-12-2009, 1:32am
Worked perfectly

Thank You