Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Apr 2010
    Posts
    207
    Thanks
    30
    Thanked 0 Times in 0 Posts

    Vertical line using only CSS

    I would like to add a vertical line to my website footer, similar to the one in the footer of this website: www.iwearyourshirt.com

    I have included my stylesheet, and I have tried several different methods, but I can not get this to happen for me. Any ideas? Thanks.

    Code:
    * {
    	margin: 0; padding: 0;
    }
    body {
    	text-align: left;
    	font: 13px Verdana;
    	color: #566777;
    	background: #e1e8ee url(../images/headerbg.gif) repeat-x 0 0;
    }
    a {
    	text-decoration: none;
    	color: #015A77;
    }
    a:hover {
    	text-decoration: underline;
    	color: #ff0000;
    }
    img {
    	border: 0;
    }
    
    .break {
    	font-size: 0;
    	width: 0; height: 0;
    	clear: both;
    }
    .alignleft {
    	float: left;
    	margin: 4px 10px 5px 0;
    }
    .alignright {
    	float: right;
    	margin: 4px 0 5px 10px;
    }
    .aligncenter {
    	text-align: center;
    }
    .hidden {
    	display: none;
    }
    
    /** BEGIN wrapper  **/
    .wrapper {
    	width: 885px;
    	margin: auto auto;
    	text-align: left;
    }
    /** END wrapper **/
    
    /** BEGIN header **/
    #header {
    	height: 178px;
    }
    	#header .search {
    		float: right;
    		margin-top: 11px;
    	}
    		#header .search form {
    			background: url(../images/search.png) no-repeat 0 0;
    			height: 49px;
    			width: 284px;
    		}
    		#header .search form input {
    			float: right;	
    			background-color: transparent;
    			border: 0;
    			font-size: 0.8em;
    			color: #FFFFFF;
    			height: 38px;
    			width: 223px;	
    			margin-top: 5px;
    			text-transform: uppercase;
    		}
    		#header .search form button {
    			float: left;	
    			width: 59px;
    			height: 49px;
    			background-color: transparent;
    			border: 0;
    			color: transparent;
    			text-indent: -9999px;
    		}
    	#header .logo {
    		clear: both;
    	}
    		#header .logo h1 {
    			padding-bottom: 32px;
    		}
    		#header .logo h1 a {
    			background: url(../images/logo.png) no-repeat 0 0;
    			display: block;
    			text-indent: -9999px;
    			height: 62px;
    			width: 352px;	
    		}
    	#header ul {
    		list-style-type: none;	
    		margin-left: 10px;
    	}
    		#header ul li {
    			float: left;	
    			margin-right: 15px;
    		}
    			#header ul li a {
    				padding: 5px 8px;	
    				color: #FFFFFF;
    				text-transform: uppercase;
    				text-decoration: none;
    				font-size: 0.9em;
    				font-weight: bold;
    			}
    			#header ul li a:hover {
    				background-color: #b9c3cf;	
    			}
    /** END header **/
    
    /** BEGIN featured **/
    #featured {
    	padding: 43px 53px 0 53px;
    }
    	#featured .l {
    		float: left;
    		margin-right: 22px;
    		margin-top: 75px;
    	}
    	#featured .items {
    		width: 650px; height: 240px;
    		overflow: hidden;
    		margin-right: 10px;
    		float: left;
    	}
    	#featured .feat {
    		width: 650px;
    	}
    		#featured .featuredimg {
    			display: block;
    			float: left;
    			border: 5px solid #ffffff;
    			margin-bottom: 45px;
    			margin-right: 25px;
    			width: 240px; height: 190px;
    			overflow: hidden;
    		}
    		#featured .feat img {
    			width: 240px;
    		}
    		#featured .feat .text {
    			float: right;
    			width: 375px;	
    			padding-top: 5px;
    		}
    			#featured .feat .text h2 a {
    				text-decoration: none;
    				color: #566777;	
    				font-size: 1.9em;
    				font-family: Arial;
    				padding-bottom: 10px;
    			}
    			#featured .feat .text p {
    				color: #5f6168;	
    				font-size: 0.9em;
    			}
    	#featured .r {
    		float: right;	
    		margin-top: 75px;
    	}
    /** END featured **/
    
    /** BEGIN top **/
    #top {
    	clear: both;
    	padding: 28px 0;
    }
    	#top .box {
    		width: 240px;
    		float: left;
    		margin: 0 40px 0 14px;
    	}
    		#top .box .name {
    			height: 58px;
    			background: url(../images/border.gif) repeat-x 0 bottom;
    		}
    			#top .box .name img {
    				float: left;	
    				padding-bottom: 5px;
    				padding-right: 9px;
    			}
    			#top .box .name .title {
    				color: #566777;
    				text-transform: uppercase;	
    				text-decoration: none;
    				font-weight: bold;
    				font-family: Arial;
    				font-size: 1.1em;
    			}
    			#top .box .name .title2 {
    				text-transform: uppercase;	
    				text-decoration: none;
    				font-family: Arial;
    				color: #5f6168;
    				font-size: 0.8em;
    			}
    		#top .box .text2 {
    			clear: both;
    			margin: 15px 0 40px 6px;	
    		}
    			#top .box .text2 p {
    				color: #76848f;
    				font-size: 0.8em;
    				margin-bottom: 20px;
    			}	
    			#top .box .text2 .more {
    				font-size: 0.8em;
    				color: #38b5c4;	
    				text-decoration: underline;
    			}
    /** END top **/
    
    /** BEGIN body **/
    #body {
    	clear: both;
    }
    /** END body **/
    
    /** BEGIN content **/
    #content {
    	width: 511px;
    	float: left;
    }
    	#content .post {
    		margin-bottom: 22px;
    		margin-top: 37px;
    		clear: both;
    	}
    		#content .post h2 {
    			font-size: 1.8em;
    			text-transform: uppercase;
    			font-family: Arial;
    			font-weight: bold;
    			padding-bottom: 18px;
    			background: url(../images/border.gif) repeat-x 0 bottom;
    		}
    		#content .post h2 a {
    			color: #566777;
    			text-decoration: none;
    		}
    		#content .post img {
    			float: left;
    			padding: 5px;
    			background-color: #FFFFFF;
    			margin: 17px 11px 19px 4px;	
    		}
    		#content .post p {
    			margin-top: 20px;
    			font-size: 0.9em;
    			line-height: 1.5em;
    			color: #566777;	
    		}
    		#content .post .date {
    			background: url(../images/date.gif) no-repeat 0 3px;
    			color: #566777;
    			padding-left: 25px;
    			height: 20px;
    			padding-top: 5px;
    			clear: both;
    		}
    		#content .post .category a {
    			background: url(../images/category.gif) no-repeat 0 0;
    			color: #566777;
    			padding-left: 29px;
    			padding-right: 10px;
    			text-decoration: underline;
    			height: 16px;
    		}
    		#content .post .comments a {
    			background: url(../images/comments.gif) no-repeat 0 0;
    			color: #566777;
    			padding: 0 10px 5px 23px;
    			text-decoration: underline;
    			height: 20px;
    		}
    		#content .entry {
    			font-weight: bold;
    			color: #00a5b6;
    			text-decoration: none;
    			text-transform: uppercase;
    			background: url(../images/previous.gif) no-repeat 0 6px;
    			padding-left: 15px;
    		}
    		#content .last {
    			margin-bottom: 70px;	
    		}
    	#content .postnav {
    		text-transform: uppercase;
    		font-weight: bold;
    		padding: 20px 0;
    	}
    		#content .postnav a {
    			text-decoration: none;
    		}
    /** END content **/
    
    /** BEGIN sidebar **/
    #sidebar {
    	float: right;
    	width: 326px;
    	padding-bottom: 40px;
    }
    	#sidebar .box2 h2 {
    		text-transform: uppercase;
    		color: #566777;
    		font-size: 1.1em;
    		font-family: Arial;
    		padding-bottom: 11px;
    		margin-top: 32px;
    		background: url(../images/border.gif) repeat-x 0 bottom;
    	}
    	#sidebar .sub ul {
    		list-style-type: none;	
    	}
    		#sidebar .sub ul li {
    			float: left;
    			margin-top: 11px;
    			margin-bottom: 17px; 
    			margin-right: 6px;
    			margin-left: 10px;	
    		}
    	#sidebar .ad {
    		clear: both;	
    	}
    		#sidebar .ad img {
    			float: left;
    			margin-right: 10px;
    		}
    		#sidebar .ad p {
    			font-size: 0.8em;
    			color: #81848a;	
    			margin: 5px 0 20px 0;
    		}
    		#sidebar .ad .time {
    			text-decoration: none;
    			font-size: 0.8em;
    			color: #00a5b6;	
    		}
    	#sidebar .pop ul {
    		list-style-type: none;	
    	}
    		#sidebar .pop ul li {
    			float: left;	
    			width: 320px;
    			margin: 10px 0 10px 10px;
    		}
    		#sidebar .pop ul li img {
    			background-color: #FFFFFF;
    			padding: 5px;
    			margin-right: 11px;
    			float: left;
    			width: 50px; height: 50px;
    		}
    		#sidebar .pop ul li .title {
    			color: #5f6168;
    			font-weight: bold;
    			text-decoration: none;
    		}
    		#sidebar .pop ul li .artcom {
    			color: #3ab7c5;
    			text-decoration: none;
    			font-size: 0.8em;	
    		}
    		#sidebar .pop ul li p {
    			margin-top: 15px;
    			margin-bottom: 5px;	
    		}
    	#sidebar .flick img {
    		width: 80px; height: 80px;
    		margin: 5px;
    	}
    	#sidebar .flick h2 {
    		margin-bottom: 7px;
    	}
    	#sidebar .video {
    		margin: 15px 0;	
    	}
    	#sidebar .cat {
    		width: 135px;
    		float: left;
    		margin-right: 20px;	
    	}
    		#sidebar .cat ul {
    			list-style-type: none;
    			margin-left: 10px;
    		}
    		#sidebar .cat ul li {
    			padding-top: 18px;
    		}
    		#sidebar .cat ul li a {
    			color: #5f6168;		
    			font-size: 0.9em;
    			text-decoration: none;
    		}
    		#sidebar .cat ul li a:hover {
    			color: #00a5b6;
    				
    		}
    /** END sidebar **/
    
    /** BEGIN footer **/
    #footer {
    	background: #000000;
    	height: 120px;
    	clear: both;
    	padding: 15px 0;
    }
    	#footer #reviews {
    		float: left;
    		border-right;
    		color: #999999;
    	}
    	
    	#footer #info {
    		float: right;
    		color: #999999;
    	}
    		
    /** END footer **/
    
    
    
    /** begin pages submenu **/
    #header li ul {
    	clear: both;
    	position: absolute;
    	list-style-type: none;
    	display: none;
    	z-index: 200;
    	height: auto !important;
    	padding-top: 1px;
    	padding-left: 0 !important;
    	margin-left: -1px;
    	background-image: none !important;
    	border-width: 0 0 1px !important;
    	border-color: #ffffff;
    	border-style: solid;
    }
    	#header li ul li {
    		clear: both;
    		margin: 0 !important;
    		background-image: none !important;
    		border-width: 1px 1px 0;
    		border-style: solid;
    		border-color: #ffffff;
    		padding: 0 !important;
    	}
    	#header li ul li a {
    		padding: 4px 15px !important;
    		line-height: 1.5em;
    		width: 170px;
    		background-color: #015A77;
    	}
    	#header li ul li a:hover {
    		background-color: #000033 !important;
    		background-image: none !important;
    	}
    /** end pages submenu **/
    
    /** BEGIN miscellaneous **/
    #content .single {
    	padding: 20px;
    	margin-bottom: 50px;
    }
    	#content .single p {
    		line-height: 1.5em;
    		margin-bottom: 10px;
    	}
    	#content .single ul, #content .single ol {
    		list-style-position: inside;
    		margin-bottom: 10px;
    	}
    	#content .single li {
    		line-height: 1.5em;
    		padding: 2px 0;
    	}
    	#content .single blockquote {
    		padding: 10px 10px 5px;
    		margin-bottom: 10px;
    		background-color: #eeeeee;
    		border-width: 1px 0;
    		border-style: solid;
    		border-color: #bbbbbb;
    	}
    	#content .single h3, #content .single h4, #content .single h5, #content .single h6 {
    		font-size: 1.2em;
    		margin-bottom: 5px;
    	}
    	#content .single h2 {
    		font-size: 2em;
    	}
    #comments {
    	padding: 20px;
    }
    	#comments a {
    		text-decoration: none;
    	}
    	#comments h2 {
    		font-size: 1.2em;
    		margin: 10px 0;
    	}
    	#comments p {
    		margin-bottom: 10px;
    		line-height: 1.6em;
    	}
    	#comments form {
    		
    	}
    	#comments form p {
    		margin-bottom: 5px;
    	}
    		#comments form input {
    			margin-right: 5px;
    		}
    		#comments form input, textarea {
    			border: 1px solid #bbbbbb;
    			font-size: 0.9em;
    			font-family: Verdana;
    			padding: 4px;
    			background-position: 4px 4px;
    			background-repeat: no-repeat;
    		}
    		#comments form input {
    			width: 240px;
    			border: 1px solid #bbbbbb;
    		}
    		#comments form textarea {
    			width: 350px;
    			padding: 4px 4px !important;
    			border: 1px solid #bbbbbb;
    		}
    		#comments form button {
    			border: 1px solid #a0a0a0;
    			font-size: 1em;
    			font-family: Verdana;
    			padding: 2px 6px;
    		}
    	.commentdetails {
    		margin-top: 25px;
    	}
    	.commentauthor {
    		margin-bottom: 5px !important;
    		font-weight: bold;
    	}
    	.commentdate {
    		font-size: 0.8em;
    		margin-bottom: 5px;
    		color: #909090;
    	}
    	.required {
    		color: #ff0000;
    	}
    h2.title {
    	font-size: 1em !important;
    	text-transform: uppercase;
    	color: #565656;
    	padding-top: 30px;
    }
    .notfound {
    	padding: 40px;
    }
    	.notfound h2 {
    		font-size: 18px;
    		font-weight: normal;
    		margin-bottom: 10px;
    	}
    
    /** END miscellaneous **/
    
    /** BEGIN wordpress 2.7 comments **/
    #comments ol {
    	list-style-type: none;
    	clear: both;
    	padding: 0;
    	margin: 0;
    }
    	#comments .buffer {
    		padding: 10px;
    	}
    	#comments ol li {
    		margin-bottom: 10px;
    	}
    	#comments ol li ul li {
    		border: 1px solid #eeeeee;
    		padding: 10px;
    	}
    	#comments ol li .avatar {
    		float: right;
    	}
    	#comments ol li .comment-author {
    		
    	}
    		#comments ol li .comment-author .fn {
    			font-weight: bold;
    			font-size: 1.2em;
    		}
    	#comments ol li .comment-meta {
    		font-size: 0.9em;
    		color: #999999;
    		margin: 5px 0 10px;
    	}
    	#comments ol li .reply {
    		font-size: 0.9em;
    		font-weight: bold;
    		padding-bottom: 10px;
    	}
    	#comments .children {
    		list-style-type: none;
    	}
    #comments .navigation {
    	padding: 0 0 40px;
    	font-size: 0.9em;
    }
    	#comments .navigation a {
    		color: #999999;
    		padding: 3px 8px;
    		border: 1px solid #bbbbbb;
    	}
    	#comments .navigation a:hover {
    		color: #000000;
    		border-color: #000000;
    		text-decoration: none;
    	}
    #comments .says {
    	display: none;
    }
    /** END wordpress 2.7 comments **/

  • #2
    Senior Coder effpeetee's Avatar
    Join Date
    Feb 2007
    Location
    Clapham Junction - London SW
    Posts
    4,885
    Thanks
    228
    Thanked 204 Times in 203 Posts
    I can't see any vertical lines in the footer.

    Is this any help.

    Frank
    * Sources (updated: 21.11.2012.
    Using Windows 8 Professional. 64bit with HP Photosmart 5510 printer Very useful site here.

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,955
    Thanks
    9
    Thanked 726 Times in 720 Posts
    The line on the website you link to is provided by:

    Code:
    border-left:1px solid #515151;
    applied to the div with the copyright info etc.

    Firebug for Firefox will let you examine the css on any website you want.

  • #4
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    You can achieve this by applying border-left or border-right css code for the div tag in place where you have your footer, if you use table then same css can be used for td.

    Regards
    Ameen

  • #5
    Regular Coder
    Join Date
    Apr 2010
    Posts
    207
    Thanks
    30
    Thanked 0 Times in 0 Posts
    I have this code now, but if you see how this looks on my site, you can clearly see that it is not correct. I am not familiar enough with css to make this look right, like it does on www.iwearyourshirt.com

    Code:
    /** BEGIN footer **/
    #footer {
    	background: #000000 url(../images/footerbg.gif) repeat-x 0 0;
    	height: 340px;
    	clear: both;
    	padding: 25px 0;
    }
    	#footer #reviews {
    		float: left;
    		border-right;
    		color: #999999;
    		
    	}
    	
    	#footer #info {
                    padding-left: 10px;
    		float: right;
    		color: #999999;
    		border-left: 1px solid #515151;
    		
    	}
    		
    /** END footer **/

    Code:
    <!-- BEGIN wrapper -->
    	<div class="wrapper">
    
    	<p id="reviews"><br />Reviews Here</p>
    	
    
    
    <p id="info"><br />&copy; 2010 The Billboard Family<br />All Rights Reserved 
    <br /> 
    
     	&rarr; <a href="http://billboardfamily.com/" target="_blank">Link 1</a><br />
    					 	&rarr; <a href="/terms-and-conditions" >Terms & Conditions</a><br />
    
    					 	&rarr; <a href="/partners" >Partners</a><br />
    					 	&rarr;  <a href="/contact" >Contact Us</a></p> </div>
    
    	
    	<!-- END wrapper -->
    Last edited by CarlMartin10; 07-03-2010 at 12:44 AM.

  • #6
    Regular Coder
    Join Date
    Apr 2010
    Posts
    207
    Thanks
    30
    Thanked 0 Times in 0 Posts
    Resolved


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •