Thread: Terrible CSS!
View Single Post
03-12-2007, 04:30 AM
#1
Awesome is offline Awesome
Awesome's Avatar
Status: Pastafarian
Join date: May 2006
Location: Duct Taped to your Ceiling
Expertise:
Software:
 
Posts: 3,440
iTrader: 26 / 93%
 

Awesome is on a distinguished road

  Old  Terrible CSS!

Code:
center_details_subskin {

		background-image: url(../images/brown_corner.gif);

		background-repeat: no-repeat;

		height: 55px;

		padding-left: 218px;

		width: 550px;

}



#container_subskin {

		background: #ffffff url(../images/left_bg.gif);

		background-repeat: repeat-y;
		margin-top: -2px;
		overflow: hidden;

		padding-left: 54px;   /* LC width */

		padding-right: 40px;   /* RC width */

		position: relative;

}



#container_subskin .column {

		float: left;

		margin-bottom: -10000px;  /* X */

		padding-bottom: 10010px;  /* X + padding-bottom */

		position: relative;

		top: 2px;

}



#text_offset

{

padding-bottom: 50px;

}



#left_subskin {

		background: url(../images/left_border.gif) no-repeat;

		background-repeat: repeat-y;

		background-color: #FFF;

		margin-left: -100%;

		left: 40px;          /* LC width */

		width: 54px;          /* LC width */

}



#container_subskin > #left_subskin {

        left: -54px;          /* -(LC fullwidth + CC padding) */

}



.sub_text_offset_clear {

		clear: both;

		padding: 18px 0 8px 0;

}
Have you ever seen such crap? Negative margin this, absolute position that. Terrible.

Grrrr. I hate fixing other peoples stupidity. It's a friggin simple layout too.