How to Remove Borders on a Post or Image in WordPress

Next Video:
How to Place Like Boxes in Wordpress Blogs....5

Removing borders on a post or image in WordPress is a terrific way to give your site a uniform look and feel. Remove borders on a post or image in WordPress with help from a programmer and web designer in this free video clip.

Part of the Video Series: Web Design & WordPress
Promoted By Zergnet


Video Transcript

Hi. I'm Omar and I'm a programmer. Today, I'm going to show you how to remove borders on a post or image in WordPress. Now, we do this using style shapes. So, the first thing you want to do is log into your WordPress dashboard, of course. And if you can see, I've already done that here. After you've done that, in order to change the style shapes for your current theme, you go to Appearance and go to the Editor. If you go to the Editor, the first thing that should appear is the style, .css. If it's not, just go to the menu on the right and look for it. Now, my current style sheet doesn't have borders on images or posts. But if it does you're going to want to look for the following text, ".post img." As you can see, mine doesn't have it, so I'm just going to ahead and add the code all the way at the bottom of the file. As you know, with style sheets, they're cascading. So, as long as you add it to the bottom of the file, it should be good. The code you want to add is right here. I just pasted it, but I'll explain it to you. You might think that it's the border that you need to change, but in actuality it's the padding and the margin. The reason for that is the border is just a thin line that goes around. But the padding is the space between the end of the image and just the end of the thin line that goes around. If you change the padding and the margin to zero, your border should be gone. I'm Omar, and I just showed you how to change the borders on posts and images in WordPress. Thanks for watching.


Related Searches

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!