diff --git a/WebNews/css/newsclass.css b/WebNews/css/newsclass.css index d1766e2..cf23515 100644 --- a/WebNews/css/newsclass.css +++ b/WebNews/css/newsclass.css @@ -3,9 +3,8 @@ height: 1200px; margin: auto; } -.classboxL{ - float: left; - overflow: hidden; +.classbox{ + display: inline-block; margin-top: 95px; width: 450px; background-color: 236 236 236; @@ -34,27 +33,7 @@ line-height: 50px; text-align: center; } -.classboxL p{ - height: 100%; - font-size: 20px; - text-indent: 2em; - line-height: 35px; - padding: 0 10px; - background-color: skyblue; - margin: 0 10px; -} -.classboxR{ - float: right; - overflow: hidden; - margin-top: 95px; - width: 450px; - background-color: 236 236 236; - border-bottom: skyblue 6px solid; - background-color: lightgray; - border-radius: 5px; - margin-right:8px; -} -.classboxR p{ +.classbox p{ height: 100%; font-size: 20px; text-indent: 2em; diff --git a/WebNews/newsclass.html b/WebNews/newsclass.html index 14c18bf..32efc34 100644 --- a/WebNews/newsclass.html +++ b/WebNews/newsclass.html @@ -25,7 +25,7 @@