answersLogoWhite

0


Best Answer

Use:

.columnClass {
border-left: solid 1px #000000;
border-right: solid 1px #000000;
}

and add class="columnClass" to your cells.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you add a 1 pixel wide solid black border to the left and right of a column using CSS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you display a border in a CSS syntax?

In CSS syntax, you can control the display of a border through many different properties depending on your needs. Properties that control the border include: border, border-top, border-right, border-bottom, border-left, border-style, border-color, border-width, border-top-color, border-top-style, border-top-width, border-right-color, border-right-style, border-right-width, border-bottom-color, border-bottom-style, border-bottom-width, border-left-color, border-left-style, and border-left-width. With these numerous properties you can control each side of the border differently. The properties of border, border-width, border-style, border-color, border-top, border-right, border-bottom, and border-left are all shorthand properties in that you can specify multiple declarations in one property as opposed to setting each individual property separately. Let's say you were wanting to put a 1 pixel, blue topaz, dashed border around all paragraphs. In your style sheet you would do: p { border: 1px dashed #0198E1; } That's the shorthand way to do it, which is the more common way. The following would result in the same thing but takes up more space then the above single declaration. p { border-top-color: #0198E1; border-top-width: 1px; border-top-style: dashed; border-right-color: #0198E1; border-right-width: 1px; border-right-style: dashed; border-bottom-color: #0198E1; border-bottom-width: 1px; border-bottom-style: dashed; border-left-color: #0198E1; border-left-width: 1px; border-left-style: dashed; }


What type of column will automatically right align the data when displayed?

date


Decimal no to binary no?

Binary numbers start with a column with the value of 1 on the right side. The next column, to the left, has double the value (which is 2), the next left doubles again (which is 4), then 8, 16, 32, 64, 128 etc. The inclusion of a number 1 in a column means that the number should be included in the total. The inclusion of a zero in a column means that the number should not be counted. Using just this combination of 1s and 0s any number can be represented. For example... 1 = 1 2 = 10 3 = 11 4 = 100 10 = 1010 15 = 1111 65 = 1000001 To convert the numbers from binary to decimal you can simply use a calculator and starting at the right side of the binary number if the first digit is 1 then add 1 to your calculator. If it is zero don't add anything, move left to the next column, if there is a 1 in this column add 2 to your total on your calculator, if it is a zero don't add anything, continue doing this, doubling the value for each column and adding the number if there is a 1 and ignoring it if there is a zero. For example.... The binary number 1100, starting at the right has 0 in the 1 column, 0 in the 2 column, 1 in the 4 column and 1 in the 8 column, so you would ignore 1 and 2 and simply add 4 + 8, giving your a value of 12, which is correct.


How text align to right in jmesa htmlcolumn?

You can align HTML column by align attribute. The attribute could be aligned in the element you want to move.


Is there any place you can go to get an image measured in pixel dimensions?

most image editing software will be able to tell you the image size in pixels, or if you are running a later version of windows and right click on an image, go to properties, and then click on the details tab, it will have the dimensions in pixels

Related questions

Border to the right of a column?

The border to the right of a column is called a right-border or column right boundary.


What is the border to the right of the column called?

The border to the right of a column is called a right-border or column right boundary.


Can the border to the right of a column be dragged until it is at a desired height?

To resize a column, place the pointer on the right edge of the column heading until the pointer changes to a doubleheaded arrow. Click and drag to the right until the column expands to the width you want.


How do you display a border like this in css The top border equals 10 pixels The bottom border equals 5 pixels The left border equals 20 pixels The right border equals 1pixel?

div.bordered { border-top:10px solid black; border-bottom:5px solid black; border-left:20px solid black; border-right:1px solid black; }


When you double click between columns headings the border between the columns do what?

The column to the left will widen or narrow out to fit the widest entry in the column. The column to the right will move, but its width will not change.


What happens when you double click a right column border?

It uses Autofit to widen the column to the widest value in the column, so that it can be seen without appearing to overlap into a new cell beside it.


What action sets the width of a column to fit the longest entry in the column in Excel?

The auto-fit column width, which you can do by placing the cursor between the border of the column headings of the column you want to widen and the column to its right. You will get a bar with two arrows showing on it and if you then double click, it will widen the column to the appropriate size to fit the widest entry.


How do you display a border like this The top border 10 pixels The bottom border 5 pixels The left border 20 pixels The right border pixel?

border-top: 10px solid #000 ;(instead of #000 use the color you want, instead of solid you can use dotted or dashed) border-bottom: 5px solid #000; border-left: 20px solid #000; border-right: 1px solid #000;


What size is the fuel tank in a 2006 dodge ram?

{| ! style="BORDER-RIGHT: black 2px solid; BORDER-TOP: black 2px; BORDER-LEFT: black 2px; BORDER-BOTTOM: black 2px solid" align="middle" valign="top" | |- ! style="BORDER-RIGHT: black 2px solid; BORDER-TOP: black 2px; BORDER-LEFT: black 2px; BORDER-BOTTOM: black 2px solid" align="middle" valign="top" | | 1500 Short Box 98 L (26 gal.)* 2500/3500 Short Box 128L (34 gal.)* All Long Box 132 L (35 gal.)* |}


In which ways can you choose to resize the column so the data it displays describes in full?

Set the column to an exact new width you specify as a number of characters Click the right border of the column heading and drag it to increase the width Use the AutoFit feature to change the column width automatically


How do you change the width of the column?

You can change the width of a column several ways. The two most common methods are:From the format menu, select column width and set for the width of your choice.Click on the line to the right of the cell heading (letter at the top of the cell) and drag the column border line to the width of your choice.


How do you insert a column to the left of a column?

Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.Select the second column, the one on the right. Then go to the insert column option, through the menus or icons. The second column will be pushed to the right and the new column inserted between the two.