Styling the native gallery
-
Hello,
I searched the forums and found no answer to this, so now I try here..
I am trying to edit the styling for the native wordpress gallery, so far I have found:
<style type=”text/css”>
#gallery-1 {
margin: auto;
}
#gallery-1 .gallery-item {
float: left;
margin-top: 10px;
text-align: center;
width: 33%; }
#gallery-1 img {
border: 2px solid #cfcfcf;
}
#gallery-1 .gallery-caption {
margin-left: 0;
}
</style>By using inspect on firebug in firefox.
However I can’t seem to figure out how it is created, and why even if I edit it it won’t show 5 pictures pr line (I have the settings at 5 collums).
Even if I delete the whole text there is still styling (my main theme styling – which is what I want) but there is also a large gap between the 3rd and 4rd picture which I cannot explain..
Is there anyone that can help me out by telling me how to “remove/override” the native styling and suggest why there is only 3 collums?
The link is: https://mgklub.byethost3.com/archives/147
Hope you can help,
Alowan
- The topic ‘Styling the native gallery’ is closed to new replies.