Solved

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

Posted on 2015-02-14
2
94 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
2 Comments
 
LVL 12

Accepted Solution

by:
Edwin Hoffer earned 500 total points
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now