I guess if you change this line of code it will make 4 portfolio items in a row.
change this :
.portfolio_item { width: 20%; margin-bottom: 40px; }
to this :
.portfolio_item { width: 25%; margin-bottom: 40px; }
divide 100 to no of columns you want. e.g 100/4 = 25 so 25% for 4 items in a row and 100/5 = 20 which is already set to 20%.
Related Posts:
- Set line spacing
- Outline effect to text
- create a white rgba / CSS3
- Using CSS for a fade-in effect on page load
- Insert image after each list item
- Transition of background-color
- How to add a color overlay to a background image?
- Change color of PNG image via CSS?
- css: how to center box div element directly in center?
- Transitions on the CSS display property
- How to completely remove borders from HTML table
- How to get current screen width in CSS?
- margin-right is not working with my HTML. How can I center my content?
- Overflow Scroll css is not working in the div
- Positioning background image, adding padding
- CSS Box Shadow – Top and Bottom Only [duplicate]
- How to place Text and an Image next to each other in HTML?
- What does the “~” (tilde/squiggle/twiddle) CSS selector mean?
- Responsive iframe with max width and height
- Overflow-x not working
- Hexagon shape with CSS3
- CSS selector for first element with class
- Inbuilt style for jquery-ui-datepicker
- Why is style.css not being enqueued?
- How to add a class to ul tags created by the WordPress editor Tinymce?
- Using theme options to change link colours
- How make theme css be first and not plugin css
- When enqueing a stylesheet, is it possible to remove the type attribute? [duplicate]
- One WordPress and database but multiple subdomains
- Collapsible button inside a ul list does work in jsfiddle but not in WP
- How to make float element in tinymce
- How to add 10 different css class to posts
- wordpress in wamp lan doesn’t load css
- JavaScript added as link/stylesheet
- Is there a default style.css
- How to get a value for admin css color either gray or blue
- CSS style button For WP Login Function in page template
- Adding external stylesheet after ALL other styles
- How can I use PurifyCSS to clean WordPress style.css?
- WordPress Twenty Fourteen Theme Sidebar
- How to apply wordpress css styles to a jQueryUi dialog?
- Auto LTR-RTL Text Direction in wordpress post!
- Is there any size difference between single quote ‘ ‘ and double quote ” ” in CSS
- Removing Title From Links to Site
- Admin pages missing css
- WordPress problematic caching
- why this media query is not working / not loading when I put it in child theme?
- Rendering css to screen and debug problem
- How to link theme fonts directory in WordPress CSS?
- WordPress custom styles in menu page
- How to Style Primary Menu with Active Class
- Set 3 iframes in a row
- Unable to align my sidebar to the contents section instead of comments
- Google yolo one tab signup plugin avilable in wordpress? [closed]
- Get post format and use it as a CSS class in different spans
- wp_enqueue_scripts and CSS
- Using post_class to style posts indivdually
- Hiding Label via CSS
- Load custom CSS before admin CSS
- Custom CSS is not working?
- How can I style an IFRAME element that has a constantly changing class name? [closed]
- Twenty Twelve Calender Widget post titles creating disturbance
- Combine CSS Files without plugin
- My site on mobile version is not giving responsive view
- Missing “Additional CSS” option in Customizer
- Adding a new block editor color option to a theme
- check the first login for specific roles
- Trying to make an image a circle in Gutenberg
- How to style a list item when the radio input button within that li is :checked
- Custom CSS based on the Author of a Post
- adding additional class to get the post thumbnail [duplicate]
- Web Developer Console: “Slow network is detected.” with fonts
- I can not change the background-color value of wp: meta_value of content.xml
- Problem alignment issue with echo knowledge base
- Complex List Field – Gravity Forms
- Is it better to add to style.css or create your own css when using a template?
- issues with a slider – investigations with firebug
- My custom theme text and content format
- I cannot make this position properly in WordPress [closed]
- How to include backend buttons css on frontend?
- Create a body div using CSS [closed]
- vertical menu bar css
- After upload on server 404 on all pages, no css
- Managing large CSS files [closed]
- I need css code to divide my webpage sections into two columns
- Images at the same vertical position in multiple columns
- css .active dropdown selects all links
- background changed after WordPress update
- How to make this splash page responsive
- Put CSS on TOP, how?
- I am trying to apply these CSS rules to x3 Post-ID’s but I can’t get it to work – any idea how I can?
- In which file can I find the custom CSS code I entered?
- Some times CSS not Applying
- CSS does not take effects and it doesn’t show in inspect [closed]
- Add Quicksand for mobile devices
- Hiding site title for Twentyfifteen sidebar on (responsive) desktop display size
- Why is the image in div not displayed in full-size?
- How enqueue CSS out of theme folder?
- Styling not refreshing for old visitors on WordPress
- What is unsafe about this CSS?