|
I'm hardly an expert in css, so this is a bit frustrating. I have a grid that was filled with a repeater. I want each row to have a 1px border along the bottom to visually separate the rows. I also want a dark gray border on each side of the table. With...
Started by Kevin on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you remove that (and add back in cellpadding="0" and cellspacing="0") and go { border-bottom: 0px; }
With this HTML:
<table id="repeaterTable" cellpadding="0" cellspacing="0">Try this to get ....
Into the table border.
|
|
Take a look at the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head></head> <body> <div style="float:left; overflow:...
Started by Billy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
I would add table-layout: fixed; to the styling
<table cellspacing="0" cellpadding="0" border="0" class="width:600px; border:solid 1px # ; border-collapse:collapse; table-layout: fixed; "> <.
|
|
I have been searching the net about border-collapse. And it seems it does not really collapse the border on nested table. I wrote a sample HTML and it seems to be ignoring border collapse.
I found a related question here but it seems it is not solved....
Started by Nassign on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This may have occurred to you but why not turn off the border on the second table?
border-collapse the border on the second table? (or why not use real markup?)
works on the td and tr elements within a table....
|
Ask your Facebook Friends
|
I have a table with the following CSS rules applied:
table { border-collapse: collapse; } td { border: 2px solid Gray; }
I want certain cells to have a red border, instead.
td.special { border: 2px solid Red; }
This doesn't work as I'd expect. In FireFox...
Started by Brant Bobby on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Giving the table a background and taking away all borders but leaving the td margins gives a nice border....
You'll have to find some other way to do it .
border-collapse means the td's don't actually have some of their borders.
|
|
Given the following HTML page a horizontal line appears at the top of the table where the 1st row would have a 2nd and 3rd cell (if they were defined).
<html> <head> <Title>Test Page</Title> <style type="text/css"> table ...
Started by Iain on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
In Firefox:
table, td { border: 1px #CCC; } table { margin: 0; border-spacing: 0; border-style: none none solid solid; } * html table { border-collapse: collapse; } td { border-style: solid solid....
|
|
Why ul border is wider than table border? Why ul height isn't contain every li elements?
Thanks you very much for your helps...
ul { font-family: Verdana; font-size: 8pt; } ul a { text-decoration: none; color: Black; } ul a:hover { text-decoration: underline...
Started by uzay95 on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
border: 1px white solid; margin-left: 10px; margin-right: 10px; }
That fixes the display in Firefox.
|
|
I am trying to figure out how to add border only inside the table. When I do:
table { border: 0; } table td, table th { border: 1px solid black; }
The border is around the whole table and also between table cells. What I want to achieve is to have border...
Started by Richard Knop on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But if i set a table border ....
This should work:
table { border:0; } table td, table th { border: 1px solid black; border-collapse: collapse; }
edit:
i just tried it, no table border.
|
|
Hi All,
I am creating a bunch of tables now as and when I add table header (<th>) table row <tr> and add border to it there are multiple borders coming up. I mean say i have two table headers in a row so each and every th tag will add its ...
Started by kjkjl on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Set border-collapse:collapse for both table and th in your CSS:
table, th, td { border-collapse to this "double border" problem is to add border-collapse: collapse property to the parent table in question....
|
|
Hi guys,
This is the 2x2 table I need to generate:
r1c1 r1c2 r2c1 r2c1 ----
In other words I should print the bottom border of the bottom right cell. This is my code:
show.pdf.prawn
#This is a two dimensional array: my_array = [["r1c1","r1c2"],["r2c1"...
Started by baijiu on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
R1c2"],["r2c1",Prawn::Table::Cell.new(:text => "r2c2", :border_width => 1 , :borders => [:bottom])]] #Table pdf.table my_array, #:headers => ["h1","h2"], :border_style => :underline_header
Omitting ....
|
|
Hi,
Is there any way to make sure that a table and cells it contains have a border only when the cells are not empty? If all the cells of the table are empty, then no border should be visible.
Kind regards,
Started by SharePoint Newbie on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
If they are not collapsed border....
You can probably set a hook to update the border style of the cell to be getBorderStyle(this) When or not.
One class specifies a border .
Give the empty cells one class name and the non-empty ones another .
|