answersLogoWhite

0

The easiest thing is to use a class. Add class="foo" to your elements. And add this code to your CSS:

.foo {
border: solid 1px #000000;
//Or something like that.
}

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What benefits and demerits do External Style Sheets have?

Benefits: One file can be used to control multiple documents having different styles. Multiple HTML elements can have many documents, which can have classes. To group styles in composite situations, methods as selector and grouping are used. Demerits: Extra download is needed to import documents having style information. To render the document, the external style sheet should be loaded. Not practical for small style definitions.


How often do you use an ID selector in a HTML document?

An ID selector, such as #greenbox {background-color: #DFD;}, is used when you want to set the style of a certain single element (or list of single elements). Generally, this will be used to style an element that serves a single purpose, such as content, nav1, footer, banner, advert1, and so on. It is not used for things that may be repeated throughout the page, because it is improper to have two elements with the same ID (you can use CSS classes for this, such as div.greenbox {...}). Ideally, You should use an ID selector to style every section of your page. If your page is just one big section, a spew of text sprinkled with inline styles or images, then you probably won't use any ID selectors. A complex site with multiple navigation areas, multiple "main" content sections, a place for advertisements, a small announcements section, and perhaps a banner, header, and footer, might use anything from ten to a hundred ID selectors.


Memorandum of applying a job?

In your memo, you should include why you are applying for the job. You should also put down what exact you are applying for.


What are the factors a selector should adopt in analyzing the suitability of a person for the job?

vjhjjk


What should I look for when applying for FHA loan?

Answering "What should I look for when applying for FHA loan?"


Should you put the gear selector in your car in park if you are pulled over by the police?

true


What position should the output voltage selector be set when using the constant speed motor?

Variable


When should you turn on a PWC's fuel selector switch to reserve?

1) When you run out of fuel and need to get back to a dock. 2) When you have a fuel flow problem and suspect the pickup or fuel selector might be clogged and need to get back to a dock.


Which groups of elements are transition elements?

Elements located in groups 4 - 12 in the modern periodic table are considered as transition elements. Transition elements should not be confused with the d-block elements which are from groups 3 - 12.


Why are you interested in applying in this position?

You should think about and be prepared to discuss what it is about the position that appeals to you. You should demonstrate to the employer your passion and motivation for the type of work for which you are applying.


How long should I wait to seed after applying weed killer?

You should typically wait about 2 to 4 weeks before seeding after applying weed killer.


What features should a template contain?

A template should include placeholders for inserting content, consistent styling elements for uniformity, customizable options for color and layout, and clear instructions for editing. Additionally, it should be easily editable and shareable for multiple users.