Nerd or Turd Header


CSS Code to Solve Div Alignment Problems

22 Oct
Share Button

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.




Share Button

Tags: , , , , , , , , , , , , , ,

Leave a Reply