Solved

Container XHTML

Posted on 2010-11-10
7
560 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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
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)

758 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

21 Experts available now in Live!

Get 1:1 Help Now