Solved

HTML5/CSS - how to create a page with content that has rounded corners

Posted on 2015-02-14
2
98 Views
Last Modified: 2015-02-14
Hi..
I have a simple web page with a background image.  The content is 2 tables with images and text.  How can I make the content 'the page' (the 2 tables) appear with rounded corners.   See the attached file.
Should be simple to do ?

myPage.png
0
Comment
Question by:JElster
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 14

Accepted Solution

by:
Edwin Hoffer earned 500 total points
ID: 40609833
Hello JElster,

I made a demo for you, please check

<html>
<head>
<style>
body {background-color:yellow;width:1200px;margin:auto;}
.content {border: 5px solid #000;margin-top:50px;border-radius: 15px;background-color:#fff;overflow:hidden;}
.heading {font-size:36;text-align:center;border-bottom: 5px solid #000;}
.text {font-size:36;text-align:center;border-bottom: 5px solid #000;}
.text1 {font-size:36;text-align:center;background-color:#fff;}
</style>
</head>
<body>
<div class="content">
<div class="heading">heading</div>
<div class="text">Text Image Here</div>
<div class="text1">My Page<br /><br />
2nd table with image</div>
</div>
</body>
</html>

Open in new window


Thanks
Edwin
0
 
LVL 53

Expert Comment

by:COBOLdinosaur
ID: 40609955
If you want to LEARN how to do advanced effects instead of relying on others to write code for you; you might find you can learn a lot of magic in a short time by going to the MDN Tutorials and investing a small amount of time.

CSS is very easy to learn, but is among the most powerful tools in web development.


Cd&
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question