Giter Site home page Giter Site logo

css-table-tablecell-i's Introduction

Equal height for adjacent columns

Basic useful feature list:

  • This works in all versions of Firefox, Chrome and Safari, Opera from at least version 8, and in IE from version 8.
  • There are many methods to do the same. But this is the easiet way i felt.
  • At the end our goal is HTML/CSS: Making two floating divs the same height.

To work on this you need simple HTML and CSS file. enough :)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Equal column heights</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
	<div class="main">
		<div class="first-column">
			A<br/>
			B<br/>
			C<br/>
			D<br/>
			E<br/>
			F<br/>
			G<br/>
		</div>
		<div class="second-column">
			Some content!
		</div>
	</div>
</body>
</html>
.main {
  display:table-row;
  font-family:verdana;
  font-size:12px;
  padding:2px;
}

.first-column {
  width:90px;
  display:table-cell;
  background-color:#DDD;
  border:1px solid #000;
}

.second-column {
  width: 180px;
  display: table-cell;
  background-color: #F2F2F2;
  border:1px solid red;
}

OUTPUT

ScreenShot

css-table-tablecell-i's People

Contributors

sureshalagarsamy avatar

Watchers

 avatar  avatar

css-table-tablecell-i's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.