Jump to content

CSS table (asymmetrically)


IcoDesign

Recommended Posts

Hi there

i have a question, i search a way how to make an css table wo is not symmetrically. Ohne Big column on the Left and 2 times 5 columns on the right, see attached screenshot. Is this possible?

Thanks a lot for your help, and sore for my bad english :)

Regards Nicole

 

Bildschirmfoto 2018-08-09 um 10.03.05.png

Link to comment
Share on other sites

  • 8 months later...
Hello, You can try following code
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
</head>

<body>
<div class="container"><br>
<table class="table table-bordered">
<tbody>
<tr>
<th rowspan="6" style="width:400px; text-align: center; line-height: 270px" >Bootcamp Workout
<th>DAUER</th>
<th>PREIS</th>
</th>
<tr>
<td>Ein</td>
<td></td>
</tr>
<tr>
<td>3</td>
<td></td>
</tr>
<tr>
<td>6</td>
<td></td>
</tr>
<tr>
<td>12</td>
<td></td>
</tr>
<tr>
<td>Fir</td>
<td>Auf</td>
</tr>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
Edited by ishan_shah
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...