1 reply [Last post]
B Man
B Man's picture
Offline
newbie
Boca Raton, FL
Last seen: 2 years 37 weeks ago
Boca Raton, FL
Timezone: GMT-5
Joined: 2012-02-01
Posts: 1
Points: 2

I'm new at CSS, and am updating my website by removing the tables (probably a few years late doing it). I was doing okay until I hit this snag:

#cruise  {
	position:relative;
	float:left;
	width: 620px;
	margin-right: 70px;
}
 
.cr-city  {
	position: relative;
	float: left;
	width: 280px;
	height: 18px;
	border-top: 1px solid #B71000;
	border-bottom: 1px solid #B71000;
	color: #000000;
	font-size: 14px;
	font-family: Arial, sans-serif;
	font-weight: bold;
	text-align: center;
	padding-top: 5px;
	margin-bottom: 5px;
}
 
.cr-info  {
	position: relative;
	clear: left;
	float: left;
	width: 280px;
	color: #000000;
	font-size: 11px;
	font-family: Verdana, Arial, sans-serif;
	font-weight: bold;
	text-align: center;
	margin-bottom: 20px;
}
 
.cr-text  {
	position: relative;
	float: left;
	width: 300px;
	color: #000000;
	font-size: 12px;
	font-family: Arial, sans-serif;
	font-weight: normal;
	text-align: justify;
	margin: 0px 0px 10px 20px;
}
 
.cr-nav  {
	width: 300px;
	position: relative;
	clear: left;
	float: left;
	text-align: center;
	margin-left: 300px;
	margin-bottom: 25px;
}
 
 
 
 
		<div id="cruise">
			<div class="cr-city">text</div>
            <div class="cr-info">text<br />line 2<br />line 3</div>
			<div class="cr-text">text</div>
			<div class="cr-nav">text</div>
		</div>

It appears properly in IE8, but in Chrome, cr-text and cr-nav don't go to the top of the container. Where did I go wrong? Thanks in advance for your help!

balajidesign
balajidesign's picture
Offline
Enthusiast
Last seen: 1 year 4 days ago
Timezone: GMT+5.5
Joined: 2012-01-31
Posts: 116
Points: 124

send us proper css and html

send us proper css and html codes. it will help to find solutions.