Solved

HTML, how to put a grey background

Posted on 2012-04-12
3
490 Views
Last Modified: 2012-04-12
Given the line

<p>This is a paragraph</p>

How would I introduce a grey background
0
Comment
Question by:Los Angeles1
3 Comments
 
LVL 17

Accepted Solution

by:
Anuroopsundd earned 167 total points
ID: 37839339
<span style='background:gray'><p>This is a paragraph</p></span>
0
 
LVL 1

Assisted Solution

by:rjccomps
rjccomps earned 167 total points
ID: 37839349
<html>
<body bgcolor ="gray">

<p>This is a paragraph</p>
</body>
</html>

Open in new window

0
 
LVL 17

Assisted Solution

by:bigeven2002
bigeven2002 earned 166 total points
ID: 37839350
Hello,

This can be achieved by embedding CSS into the Paragraph tag.
<p style="background-color:#CCC;"> This is a paragraph </p>

Open in new window

0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
RAID Card RS3WC080 Will Not Start Code 10 5 39
how to avoid redundand ajax calls 5 31
Changing alignment and creating border 6 30
Little bit of help styling my heading 3 21
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

831 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