Solved

Container XHTML

Posted on 2010-11-10
7
562 Views
Last Modified: 2013-11-19
Im trying to create a website that has a gray background. I also need to add containers I want the containers to be white with round edges. I dont want to use CSS though. Is there any way to do this without CSS?
0
Comment
Question by:anshealth
7 Comments
 
LVL 22

Expert Comment

by:remorina
ID: 34107964
anshealth:
Any XHTML/HTML properties are applied using CSS, whether external style sheet or inline, a background colour, widths, fonts, colours etc must be specified using CSS.

Unfortunately you would have to use CSS in order to get the results you want from an XHTML but iy can be minimized and used inline within the XHTML if that would work for your requirements.



0
 
LVL 8

Accepted Solution

by:
Zado earned 500 total points
ID: 34201386
You have to use css. Place this in <head> section:

<style type="text/css">
body {
  background-color:#333;
}
.container {
  background-color:#FFF;
  border-radius:10px;
  -moz-border-radius:10px;
  -webkit-border-radius:10px;
}
</style>

Open in new window

and this in <body> section obviously:
<body>
  <div class="container">
    <!-- your code here -->
  </div>
</body>

Open in new window

0
 
LVL 8

Expert Comment

by:Zado
ID: 34317475
Please grant the points and close the question, thanks :-)
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 16

Expert Comment

by:SSupreme
ID: 34340497
lol
0
 
LVL 22

Expert Comment

by:remorina
ID: 34340624
Just to add more info
The border-radius is a CSS3 selector, the use along with -moz- & -webkit- would make it supported on FF, Safari and Chrome however it is not supported in IE7 or IE8, while IE9 supports it though.

Cheers!

0
 
LVL 8

Expert Comment

by:Zado
ID: 34341440
@SSupreme, I don't know what is funny in my comment, I thought EE works this way:
1. user asks a question
2. experts gives possible solutions
3. user checks the solutions given
    a. if nothing works with expectations, user describes the problem and experts keep trying to find proper solution
    b. if one or more solutions work, user grant the points.
I also thought most people understand it, silly me.

I asked for grant the points to experts in other posts, but I'm not going to explain in every post now what I meant, it doesn't make sense.

To be clear here: I didn't say 'I gave you proper solution, please grant the points', I don't think I'm the smartest guy here, but I think that people should respect someone's work and 'pay' for solutions with points, it's not very much work consuming, takes less than one minute.
0
 

Author Closing Comment

by:anshealth
ID: 34666033
-
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
insert text field data into html script 13 40
maps stopped work unsure why 7 33
Sort Order Icons on HTML Table 3 20
Hide cell in a table 2 9
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 …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
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)

813 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

12 Experts available now in Live!

Get 1:1 Help Now