Solved

Container XHTML

Posted on 2010-11-10
7
561 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cordova Camera plugin fails 2 98
How can I do a Select All on this page? 8 36
HTML Relative path 9 29
Alignment is not working correctly. 8 33
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
This article discusses four methods for overlaying images in a container on a web page
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…
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)

864 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