WordPress automatically adds a border around all gallery images with inline styles on the page from the gallery shortcode. There are a number of ways to remove the borders, if you decide you want a more subtle look for your website galleries. In Twenty Twelve, the featured image and the images inserted into the post have a slight border-shadow around the images and a slightly rounded corner. This is the code in the stylesheet style. In addition to the subtle shadow, the WordPress default gallery code also adds a 2px border to gallery images which may be more than you want. The WordPress gallery shortcode creates a new piece of code that is added inline on the page for every gallery you add to the post. This is the default gallery shortcode style that adds an additional 2px border to the gallery images. To give the gallery images the same subtle shadow with no extra border, as other post images, you can add this CSS to your Custom CSS editor.
Fixing the Problem with CSS
While some themes allow users to change fonts, colours, layout, and other stylistic elements directly from the options panel, not all themes allow this. Not all themes will have image borders by default. But if you find yourself loving everything about a theme, save for one niggling aspect, the good news is that it IS fixable! So how can you remove borders from images on your WordPress website? Read on to find out! Also called a stylesheet, this file dictates the design of everything on your site. Fonts, colours, margins, padding, and a whole lot of other design elements are controlled by this file. Making changes to this file is doable, if you are interested in getting your hands dirty a bit. I took a deep breath, followed your instructions to the letter and perfect results. Thank you!
For one of the most popular web page building platforms in existence, WordPress can get pretty frustrating with basic stuff. I guess most of that is due to its organic growth from a blogging platform, to a full-fledged design tool. Look at sidebar images for example.
Every WordPress theme has a unique way of displaying its images. They all vary in the amount of space dedicated by default, and what kind of caption box is used to display the title and description. Several of them make it seem as if the picture is encased in a larger box of a different color from the rest of the page containing the caption. More than one WordPress blogger has been frustrated by this design decision in an otherwise perfect theme.