Solved

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

Posted on 2015-02-14
2
97 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 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
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 embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

828 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