Jump to content
  • 0

Border - CSS


woofs
 Share

Question

Добрый день, не буду расписывать а покажу))

вот у меня таблица с 3мя строками, с 3мя столбцами, задаю через CSS бордер и получается так:

i95305_23.01.jpg

а надо так:

i95306_23001.jpgрисовал сам, не ругайте

каким значением этого добиться?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>border</title>
<style type="text/css">
.doc {
width: 30%;
border:solid black;}
</style>
</head>

<body>
<table class="doc" bordercolor="#000000" b border="1px" >
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>

<p> </p>
</body>
</html>

Edited by woofs
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

столкнулся с тойже проблемой

только у меня стили в отдельном файле

table  {width:95%;border:solid red;cellspacing:0}
td {border:solid red}
th {border:solid red}

нужно получить таблицу как у woofs на второй картинке

подскажите что поправить

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy