Click here to Skip to main content
15,888,984 members
Home / Discussions / Web Development
   

Web Development

 
Questionjava script code error Pin
varsh1216-Jul-10 19:35
varsh1216-Jul-10 19:35 
AnswerRe: java script code error Pin
Peace ON16-Jul-10 19:46
Peace ON16-Jul-10 19:46 
GeneralRe: java script code error Pin
varsh1216-Jul-10 20:14
varsh1216-Jul-10 20:14 
AnswerRe: java script code error [modified] Pin
Peace ON16-Jul-10 20:20
Peace ON16-Jul-10 20:20 
Questionjavascript : submit for via link + "retrieving value of submit button" Pin
sharp_k16-Jul-10 12:02
sharp_k16-Jul-10 12:02 
AnswerRe: javascript : submit for via link + "retrieving value of submit button" Pin
sharp_k16-Jul-10 12:15
sharp_k16-Jul-10 12:15 
QuestionSurvey request for Javascript Developers Pin
Sean Ewington16-Jul-10 5:46
staffSean Ewington16-Jul-10 5:46 
QuestionBackground-image not working in external stylesheet Pin
swornavidhya_m16-Jul-10 3:40
swornavidhya_m16-Jul-10 3:40 
I'm trying to create a tableless website. When using external stylesheet, the background-image property alone is not working with my external stylesheet. Other properties are working fine with the external stylesheet. I'm getting fuzzed to continue.

My external stylesheet (style.css) and is placed in folder 'css' code is:
The image is in folder 'images'.

When surfng the google with 'background-image not working in external stylesheet' i found that if we place css in different folder and made a call for an image in differnt folder we've to give mention as
background-image:url("../images/disdat-gold-red.gif");

- even this failed.

Again when searched, i found that instead of saying 'background-image' give code as follows for which they answered it worked fine. And the code is:
background: #000000 url(images/disdat-gold-red.gif) repeat-x;
- even this get failed for me.

I'm attaching my html file along with my css file.

Coding part in "style.css"
#header
{
text-align:center;
font-family:arial, verdana, 'times new roman';
font-size:15pt;
font-weight:bold;
color:#0ac0af;
padding:2% 0 15% 0;
background:url(images/disdat-gold-red.gif) no-repeat;
}

HTML code is:
<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 6.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Try Web Page</title>
<link type=text/css rel=stylesheet href=css/style.css>
</head>

<body>
<div id="container">
<div id="top">
<div id="header">Inside Header Top Container</div>
<div id="nav">Inside Nav Top Container</div>
</div>
<div id="main">
<div id="left">Inside Left Main Container</div>
<div id="right">Inside Right Main Container</div>
</div>
<div id="footer">Inside footer Container</div>
</div>
</body>

</html>
M.Sworna Vidhya

AnswerRe: Background-image not working in external stylesheet Pin
Peace ON16-Jul-10 4:04
Peace ON16-Jul-10 4:04 
GeneralRe: Background-image not working in external stylesheet Pin
swornavidhya_m16-Jul-10 18:14
swornavidhya_m16-Jul-10 18:14 
GeneralRe: Background-image not working in external stylesheet Pin
Peace ON23-Jul-10 19:09
Peace ON23-Jul-10 19:09 
AnswerRe: Background-image not working in external stylesheet Pin
T M Gray16-Jul-10 6:28
T M Gray16-Jul-10 6:28 
QuestionJavaScript Difference Between IE and Firefox Pin
002comp15-Jul-10 22:37
002comp15-Jul-10 22:37 
AnswerRe: JavaScript Difference Between IE and Firefox Pin
Peace ON16-Jul-10 0:04
Peace ON16-Jul-10 0:04 
GeneralRe: JavaScript Difference Between IE and Firefox Pin
002comp16-Jul-10 1:36
002comp16-Jul-10 1:36 
GeneralRe: JavaScript Difference Between IE and Firefox Pin
Peace ON16-Jul-10 1:43
Peace ON16-Jul-10 1:43 
QuestionHTTP_REFERRER Pin
Civic0614-Jul-10 14:46
Civic0614-Jul-10 14:46 
AnswerRe: HTTP_REFERRER Pin
Peter_in_278014-Jul-10 15:22
professionalPeter_in_278014-Jul-10 15:22 
GeneralRe: HTTP_REFERRER Pin
Civic0614-Jul-10 16:21
Civic0614-Jul-10 16:21 
GeneralRe: HTTP_REFERRER Pin
cjoki15-Jul-10 7:55
cjoki15-Jul-10 7:55 
AnswerRe: HTTP_REFERRER Pin
Tomz_KV15-Jul-10 9:30
Tomz_KV15-Jul-10 9:30 
QuestionMySQL connection URL issue [modified] Pin
khurram_shahzad13-Jul-10 12:27
khurram_shahzad13-Jul-10 12:27 
AnswerRe: MySQL connection URL issue Pin
SeMartens13-Jul-10 22:17
SeMartens13-Jul-10 22:17 
GeneralRe: MySQL connection URL issue Pin
khurram_shahzad14-Jul-10 2:34
khurram_shahzad14-Jul-10 2:34 
QuestionTreeview style forecolor nodes Pin
dptalt13-Jul-10 3:57
dptalt13-Jul-10 3:57 

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.