Computer Related

CSS Code to Solve Div Alignment Problems

CSS Cascading Style Sheet

I was having problems aligning data inside a div container but I could not see what was causing this issue.

I originally thought it was to do with padding, margins and then div alignments and then came up with this useful code to help fault find my divs.

Paste the following code into the div tag in your HTML page:

style=”display:inline-block; border: 3px solid purple;

This will show a bright border for the DIV so you can more easily fault find any problems.

Enjoy

 

 

Nerd

I am the Nerd.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Verified by MonsterInsights