Avatar of Rocking
Rocking
 asked on

Div border is not displayed

Hi,

In my below code i am unable to view the parent div border?

<div style="width: 800px;border: solid 1px;">

<div style="float: left; width: 200px; margin-right: 5px; background-color: red;">
  <p>
    This is our left text column.
    This is our left text column.
    This is our left text column.
  </p>
</div>

<div style="float: left; width: 200px; margin-right: 205px;background-color: aqua;">
  <p>
    This is our right text column.
    This is our right text column.
    This is our right text column.
    This is our right text column.
    This is our right text column.
  </p>
</div>

<div style="float: right; width: 200px; margin-right:20px;background-color: gray;">
  <p>
    This is our right text column.
    This is our right text column.
    This is our right text column.
    This is our right text column.
    This is our right text column.
  </p>
</div>
</div>

Open in new window

HTMLCSS

Avatar of undefined
Last Comment
Md Shah

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Md Shah

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck