PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, August 3, 2022

[FIXED] How do I center a column with a max-width of 1280px inside a full width row with visual composer + css

 August 03, 2022     css, visual-composer, wordpress     No comments   

Issue

I'm building a site with wordpress, and i need to center a row with a max-width: 1280 that lives inside a full width row. This is the site link: http://creativa.co/selva/ and i'm trying to put the yellow row above the "6 Reasons why Colombia" row https://prnt.sc/meclxb


Solution

Have you tried this on the div with the max-width?

margin-left: auto;
margin-right: auto;

Also, in your case, the yellow block has some div before it, that is taking some space. You will need to hide it or remove it to make it work.



Answered By - dabishan
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing