NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page I am desperate for your help! with css...

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
6 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 11-23-2005, 08:27 AM THREAD STARTER               #1 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009

Caution I am desperate for your help! with css...


My website uses a css script to provide the backround... the cursors... and the main pictures...
there is one problem it isn't loading the picture at the top! even when i change the picture for it to load...
this all came about when i tried to change it to a flash .swf, but now no pictures will work in there please help!
i am desperate!
here is my css script!
HELP!

Code:
/* Layout elements */

/* Fundamentals */

html {
	background: #222 url(http://www.josephheskett.com/images/bg.gif) repeat-x scroll;
	font: 0.75em/1.3 Verdana, Helvetica, Arial, Sans-serif;
	text-align: center;
}

/* Body container */

body {
	margin: 0 auto;
	padding: 0;
	text-align: left;
	width: 700px;
	background: #fff url(http://www.josephheskett.com/images/mainbg.gif) repeat-y;
	border-left: 1px solid #000;
	border-right: 1px solid #000;
}

/* Links */

a:link, a:visited {
	color: #b55555;
	text-decoration: underline;
}

a:hover, a:active {
	color: #386084;
	text-decoration: underline;
}

/* Headings */

h2 {
	font: normal 1.9em "Century Gothic", Geneva, Helvetica, Arial, Sans-serif;
}

h3 {
	font: normal 1.6em "Century Gothic", Geneva, Helvetica, Arial, Sans-serif;
}

/* Lists */

ul {
	margin-left: 25px;
	padding: 0;
}

li {
	list-style-type: square;
}

/* Layout IDs */

/* Header */

#head {
	width: 700px;
	height: 150px;
}

#head h1 {
	margin: 0;
	padding: 0;
	display: block;
	width: 700px;
	height: 150px;
	background-image: url(http://www.josephheskett.com/images/head.jpg);
	text-indent: -10000px;
	background-color: #000000;
	cursor: crosshair;
}

/* Navigation */

#nav {
	margin: 0;
	padding: 0;
	width: 700px;
	height: 20px;
}

/* Navigation list */

#nav ul {
	margin: 0 0 0 13px;
	padding: 0;
}

#nav li {
	float: left;
	list-style: none none;
	font-size: 1.1em;
	margin: 0 0 0 2px;
	padding: 3px 0;
	text-transform: uppercase;
}

/* Navigation links */

#nav li a:link, #nav li a:visited {
	margin: 0;
	padding: 3px 0;
	display: block;
	width: 110px;
	color: #222;
	background-color: #f3f3f3;
	text-decoration: none;
	text-align: center;
}

#nav li a:hover, #nav li a:active {
	margin: 0;
	padding: 3px 0;
	display: block;
	width: 110px;
	color: #111;
	background-color: #fefefe;
	text-decoration: none;
}

/* Span to change colour */

#nav li a:link span, #nav li a:visited span {
	margin: 0;
	padding: 0;
	color: #5588b5;
	text-decoration: none;
}

#nav li a:hover span, #nav li a:active span {
	margin: 0;
	padding: 0;
	color: #5588b5;
	text-decoration: none;
}

/* Main content */

#main {
	width: 450px;
	padding: 15px;
	float: left;
}

/* Sidebar */

#sidebar {
	width: 190px;
	padding: 15px;
	float: right;
	cursor: text;
}

/* Sidebar list links */

#sidebar ul {
	margin: 0;
	padding: 0;
}

#sidebar li {
	margin: 3px 0 0 0;
	padding: 0;
	list-style-type: none;
}

#sidebar li a:link, #sidebar li a:visited {
	display: block;
	width: 180px;
	padding: 2px 0 2px 5px;
	background-color: #f1f1f1;
	color: #333;
	text-decoration: none;
}

#sidebar li a:hover, #sidebar li a:active {
	display: block;
	width: 180px;
	padding: 2px 0 2px 5px;
	background-color: #fcfcfc;
	color: #222;
	text-decoration: none;
}

/* Footer */

#foot {
	margin: 0;
	padding: 0;
	text-align: center;
	clear: both;
	cursor: nw-resize;
}

#foot p {
	margin: 0;
	padding: 20px 0;
	font-weight: bold;
}
PLEASE HELP!
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline  
Old 11-23-2005, 10:45 AM   #2 (permalink)
NamePros Member
 
Wybe's Avatar
Join Date: Nov 2005
Location: the Netherlands
Posts: 127
Wybe is on a distinguished road
 



for starters, I always enclose my image URL in single quote marks
Code:
background: #ffffff url('images/mainbg.gif') repeat-y;
Also, why are you defining a background for "html" as well as "body" ?
__________________
accepts paypal and cookies
Wybe is offline  
Old 11-23-2005, 11:41 AM THREAD STARTER               #3 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
it loads 2 different pics...
www.josephheskett.com
one loads the colour in the backround, the other loads the strip...
my main problem is:
Code:
	background-image: url(http://www.josephheskett.com/images/head.jpg);
thats the bit that isn't showing... the picture is suppose to appear where the black bit is...
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline  
Old 11-23-2005, 11:44 AM   #4 (permalink)
Eating Pie
 
iNod's Avatar
Join Date: Nov 2004
Location: Canada
Posts: 2,267
iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of
 


Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
Change this to
Code:
.html {
	background: #222 url('http://www.josephheskett.com/images/bg.gif') repeat-x scroll;
	font: 0.75em/1.3 Verdana, Helvetica, Arial, Sans-serif;
	text-align: center;
}
You must add the . infront of html otherwise it says to CSS for all functions html do background.... there is no function called html other than the starting/closing operator. (<html>)

iNod.
__________________
I feel old.
iNod is offline  
Old 11-25-2005, 01:31 AM THREAD STARTER               #5 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
thank you.. it seems to be working
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline  
Old 11-25-2005, 03:10 PM   #6 (permalink)
Account Closed
 
StardustWD's Avatar
Join Date: Oct 2005
Location: Lost deep in the realms of css and xhtml...
Posts: 24
StardustWD is an unknown quantity at this point
 



Wybe, i'm not sure whether i would recommend enclosing the image URL within single quotes, this stops IE5 Mac from seeing your background images. I would recommend specifying:
Code:
background: #ffffff url(http://wac.658e.edgecastcdn.net/80658E/namepros/images/mainbg.gif) repeat-y;
StardustWD is offline  
Old 11-26-2005, 03:30 AM THREAD STARTER               #7 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
ok right... thanks for your help it is all working now
the '.' has been added and the single quotes removed
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting RedNerve to CSS - Hitting some problems! will7 Web Design Discussion 10 12-13-2005 07:45 PM
Various CSS problems Daniel Exe Programming 1 11-22-2005 10:46 AM
CSS Menus.com + CSS Menu.com Unknown Domains For Sale - Auctions 3 02-14-2005 04:41 PM
CSS: what's the use of it? lucesei Programming 13 04-12-2004 07:21 AM

 
All times are GMT -7. The time now is 02:19 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger