Copy link to clipboard
Copied
i added the spry image slidershow to my website gallery i can't seem to figure out the coding to have placed in the center. NEED HELP or even the code
Copy link to clipboard
Copied
Depending on how it's set up, one of the easiest ways is to create a centered <div> using css, then place the gallery within it.
To center using css, all you need to do is give a width and set the margin to auto...
#centered_div {
width:500px;
margin:auto;
}
Copy link to clipboard
Copied
does it go in the head or body tag
Copy link to clipboard
Copied
The css I listed goes in with your other css info, between the <style> tags in your <head> section...
<style type="text/css">
#centered_div {
width:500px;
margin:auto;
}
the remainder of your css
</style>
You would then need a <div> added to the <body> section with the id set to centered_div...
<div id="centered_div">your slideshow info here</div>
Copy link to clipboard
Copied
thanks it worked
Find more inspiration, events, and resources on the new Adobe Community
Explore Now