Reputation: 1323
This is my page
My css for the above web page looks fine on browsers on the desktop, however, on mobile browsers the border around the food ingredients are displayed incorrectly:
Relevant CSS :
.page_title {
text-transform:capitalize;
text-align:center;
}
.food_list {
text-transform:capitalize;
}
.listing {
text-indent:10px;
margin-right:1500px;
margin-left:10px;
color:black;
background-color:lightblue;
border-radius: 10px 20px 30px 40px;
-moz-border-radius: 10px 20px 30px 40px;
-webkit-border-radius: 10px 20px 30px 40px;
-khtml-border-radius: 10px 20px 30px 40px;
}
.ul {
list-style:none;
}
p {
text-transform:none;
}
p span {
display:block;
}
Upvotes: 0
Views: 340
Reputation: 6795
try this:
.listing {
text-indent: 10px;
margin-left: 10px;
color: black;
float: left;
background-color: lightblue;
border-radius: 10px 20px 30px 40px;
-moz-border-radius: 10px 20px 30px 40px;
-webkit-border-radius: 10px 20px 30px 40px;
-khtml-border-radius: 10px 20px 30px 40px;
}
h2{
clear:both;
}
Upvotes: 1