Click here to Skip to main content
15,886,873 members
Home / Discussions / Web Development
   

Web Development

 
QuestionContent Management System? Pin
Waqas Ahmad Abbasi3-Aug-11 20:29
Waqas Ahmad Abbasi3-Aug-11 20:29 
AnswerRe: Content Management System? Pin
SUCHIT S SHAH3-Aug-11 23:55
SUCHIT S SHAH3-Aug-11 23:55 
AnswerRe: Content Management System? Pin
Simon_Whale4-Aug-11 0:08
Simon_Whale4-Aug-11 0:08 
QuestionImg centering and music player Pin
starr0073-Aug-11 14:01
starr0073-Aug-11 14:01 
AnswerRe: Img centering and music player Pin
vbmike3-Aug-11 17:37
vbmike3-Aug-11 17:37 
GeneralRe: Img centering and music player Pin
starr0074-Aug-11 8:04
starr0074-Aug-11 8:04 
GeneralRe: Img centering and music player Pin
vbmike4-Aug-11 16:49
vbmike4-Aug-11 16:49 
GeneralRe: Img centering and music player Pin
starr0075-Aug-11 12:49
starr0075-Aug-11 12:49 
This is how I did it, and still my image didnt center. Am I missing something?

CSS
* {
	margin: 0px;
	padding: 0px;
}

body {
	padding: 80px 0px 0px;
	background: url('images/background_top.gif') #c4b8a1 repeat-x;
	color: #695d47;
	font-family: verdana, arial, sans-serif;
	font-size: 12px;
	text-align: center;
}

a {
	color: #695d47;
	background-color: inherit;
	text-decoration: underline;
}

a:hover {
	color: #ab9c7e;
	background-color: inherit;
}
span {
	display: none;
}

img {
	display: block;   
	margin-left: auto;   
	margin-right: auto; 
	border: none;
}
	
{border: 1px solid red !important;
}

ul {
	list-style-type: none;
}

li {
	list-style-type: none;
}

p {
	margin: 0px 0px 15px;
	text-align: justify;
	line-height: 15px;
}

.clearthis {
	margin : 0px;
	height : 1px;
	clear : both;
	float : none;
	font-size : 1px;
	line-height : 0px;
	overflow : hidden;
	visibility: hidden;
}


#body_wrapper {
	padding: 5px 0px 10px;
	width: 100%;
	background-color: #fff;
	color: inherit;
}

#container {
	margin: 0px auto;
	width: 758px;
	text-align: right;
}

#container .content_header {
	margin: 20px 0px 0px auto;
	width: 730px;
	height: 40px;
	background: url('images/content_header_bg.gif') repeat-x 0% 0%;
}

#container .content {
	margin: 3px 150px 0px 28px;
	width: 580px;
	text-align: left;
}


/* Page Header */

#page_header {
	background: url('images/header_leftborder.gif') #fff repeat-y 0% 0%;
	color: #6a604e;
	float: left;
}

#page_header h1 {
	width: 280px;
	height: 125px;
	overflow: hidden;
	background: url('images/website_title.gif') no-repeat 50% 50%;
}


/* Navigational Menu */

#nav_menu {
	margin-left: 9px;
	padding-left: 19px;
	float: right;
	background: url('images/header_leftborder.gif') #fff repeat-y 0% 0%;
	color: #b3a386;
	text-align: center;
	font-family: tahoma, arial, sans-serif;
}

#nav_menu a {
	color: #b3a386;
	background: inherit;
}

#mav_menu a:hover {
	color: #857860;
	background: inherit;
}

#nav_menu ul {
	width: 450px;
	height: 125px;
	overflow: hidden;
}

#nav_menu li {
	float: left;
	border-width: 0px 1px 1px 0px;
	border-color: #c1b7a5;
	border-style: solid;
	font-size: 20px;
}

#nav_menu li#menu3, #nav_menu li#menu6 {
	border-right: none;
}

#nav_menu li a {
	display: block;
	width: 149px;
	height: 62px;
	text-decoration: none;
}

#nav_menu li a:hover {
	color: #857860;
	background-color: #f4eee2
}

#nav_menu li a span {
	padding-top: 17px;
	display: block;
}


/* Welcome to my Site */

#welcome .content_header h2 {
	height: 28px;
	background: url('images/welcome_header.gif') no-repeat 0% 0%;
	
}

#welcome p {
	width: 420px;
	float: right;
	text-align:center;
}


/* Client List */

#clientlist .content {
	margin-top: 18px;
	margin-right: 260px;
	width: 470px;

}

#clientlist .content_header h1 {
	height: 28px;
	background: url('images/clientlist_header.gif') no-repeat 0% 0%;
}

#clientlist p {
	width: 300px;
	float: right;
}

#photographer_image {
	width: 758px;
	text-align: left;
	overflow: hidden;
}

#photographer_image span {
	display: block;
	margin-top: -269px;
	margin-left: 517px;
	width: 241px;
	height: 300px;
	background: url('images/main_image.gif') no-repeat 0% 0%;
	z-index: 1;
	position: absolute;
}


/* My Portfolio */


#portfolio .content_header h1 {
	height: 28px;
	background: url('images/portfolio_header.gif') no-repeat;
}

#portfolio {
	padding-bottom: 12px;

	background: url('images/gallery_title.gif') no-repeat 29px 80px;
}

#gallery {
	padding: 40px 0px 25px 59px;
}

#gallery ul {
	width: 700px;
}

#gallery li {
	margin-right: 30px;
	margin-bottom: 25px;
	padding: 4px 4px 2px;
	background-color: #c4b8a1;
	color: inherit;
	float: left;
}


/* Page Footer */

#page_footer {
	padding: 9px 10px 6px;
	font-weight: bold;
	float: none;
	clear: both;
}

#page_footer a:hover {
	background-color: inherit;
	color: #4f4635;
}



/* Thumbnail with Double-Border */

.thumbnail_dborder_1 {
	margin: 0px 12px 5px 0px;
	background: url('images/thumbnail_border_1.gif') #695d47 no-repeat 0% 0%;
	color: inherit;
	clear: left;
	float: left;
}

.thumbnail_dborder_2 {
	background: url('images/thumbnail_border_1.gif') no-repeat 100% 0%;
}

.thumbnail_dborder_3 {
	background: url('images/thumbnail_border_1.gif') no-repeat 100% 100%;
}

.thumbnail_dborder_4 {
	padding: 4px 4px 3px;
	background: url('images/thumbnail_border_1.gif') no-repeat 0% 100%;
}

.thumbnail_dborder_1 img {
	border: #fff 7px solid;
}


/* Thumbnail with Single-Border */

.thumbnail_border_1 {
	margin: 5px 12px 5px 0px;
	background: url('images/thumbnail_border_2a.gif') #c5b9a2 no-repeat 0% 0%;
	color: inherit;
	clear: left;
	float: left;
}

.thumbnail_border_2 {
	background: url('images/thumbnail_border_2b.gif') no-repeat 100% 0%;
}

.thumbnail_border_3 {
	background: url('images/thumbnail_border_2c.gif') no-repeat 100% 100%;
}

.thumbnail_border_4 {
	padding: 4px 4px 3px;
	background: url('images/thumbnail_border_2d.gif') no-repeat 0% 100%;
}

GeneralRe: Img centering and music player Pin
vbmike5-Aug-11 13:59
vbmike5-Aug-11 13:59 
GeneralRe: Img centering and music player Pin
starr0075-Aug-11 16:18
starr0075-Aug-11 16:18 
GeneralRe: Img centering and music player Pin
vbmike6-Aug-11 10:32
vbmike6-Aug-11 10:32 
GeneralRe: Img centering and music player Pin
starr0076-Aug-11 15:05
starr0076-Aug-11 15:05 
GeneralRe: Img centering and music player Pin
vbmike7-Aug-11 2:55
vbmike7-Aug-11 2:55 
GeneralRe: Img centering and music player Pin
starr0077-Aug-11 14:38
starr0077-Aug-11 14:38 
GeneralRe: Img centering and music player Pin
vbmike9-Aug-11 15:05
vbmike9-Aug-11 15:05 
GeneralRe: Img centering and music player Pin
starr00711-Aug-11 14:34
starr00711-Aug-11 14:34 
GeneralRe: Img centering and music player Pin
starr00711-Aug-11 14:42
starr00711-Aug-11 14:42 
GeneralRe: Img centering and music player Pin
vbmike12-Aug-11 12:52
vbmike12-Aug-11 12:52 
Questionpositioning issue in IE9 Pin
siva4552-Aug-11 23:09
siva4552-Aug-11 23:09 
AnswerRe: positioning issue in IE9 Pin
Gerben Jongerius3-Aug-11 2:08
Gerben Jongerius3-Aug-11 2:08 
GeneralRe: positioning issue in IE9 Pin
Ed Nutting23-Aug-11 0:11
Ed Nutting23-Aug-11 0:11 
QuestionHow to identify a particular Web site is not active Pin
Gali197825-Jul-11 7:53
Gali197825-Jul-11 7:53 
AnswerRe: How to identify a particular Web site is not active Pin
Maximilien25-Jul-11 9:06
Maximilien25-Jul-11 9:06 
AnswerRe: How to identify a particular Web site is not active Pin
Shahriar Iqbal Chowdhury/Galib25-Jul-11 22:13
professionalShahriar Iqbal Chowdhury/Galib25-Jul-11 22:13 
QuestionHow can I check if my IIS is alive using C#? Pin
goldsoft24-Jul-11 4:32
goldsoft24-Jul-11 4:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.