Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6980693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:03:34+00:00 2026-05-27T18:03:34+00:00

index.html <html> <head> <link href=static/style.css rel=stylesheet type=text/css /> <title>I want to</title> </head> <body> {%

  • 0

index.html

<html>
    <head>
        <link href="static/style.css" rel="stylesheet" type="text/css" />
        <title>I want to</title>
    </head>
    <body>
        {% block header %}
        <div id="header-wrap"></div>
        {% endblock %}
        <div id="container">
            {% block error %} {% endblock %}
            {% block content %}{% endblock %}
        </div>
    </body>
</html>

page.html

{% extends 'index.html' %}

{% if error %}
    {% block error %}
        {{ error }}
    {% endblock %}
{% endif %}
{% block content %}
    <p><b>Page</b>: {{ page.language }}</p> 
    <p>views: {{ page.page_views}}</p>
    <form action='/suggest' method='post'>
        <textarea name='suggest' rows='10' cols='100'></textarea>
        <input type='hidden' name='page_name' value={{ page.language }}>
        <input type='submit' value='suggest'>
    </form>
    {% for suggestion in suggestions %}
        <p>Suggestion: {{ suggestion.text }}</p>
        <p>Votes: {{ suggestion.votes }}</p>
    {% endfor %}
{% endblock %}

views.py returns

return render_to_response('page.html', {'page': page, 'suggestions': suggestions})

Problem:
– when I see the home page(index.html), header seems correctly placed(everything is good)
– when I see specific page, header not appearing, when I firebug-ed it, I found the link tag contains the entire index.html inside it

<head>
<link type="text/css" rel="stylesheet" href="static/style.css">
<html>
<head>
<link href="static/style.css" rel="stylesheet" type="text/css" />
<title>I want to learn</title>
</head>
<body>
<div id="header-wrap"></div>
<div id="container">
<a href=/page/python>python</a>
<a href=/page/page1>page1</a>
<a href=/page/page1>page2</a>
<a href=/page/page3>page3</a>
</div>
</body>
</html>
</link>

how can I fix this issue?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:03:34+00:00Added an answer on May 27, 2026 at 6:03 pm

    Just fixed it :
    - path to stylesheet on pages was relative(static/style.css) and NOT absolute(*/*static/style.css). Making absolute path makes it work

    <head>
    <link type="text/css" rel="stylesheet" href="/static/style.css">
    <html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

<html> <title>adsfasdf</title> <head> <link rel=stylesheet type=text/css href=style.css > <script type=text/javascript> function editDates() { var
I have the following code: index.html <HTML> <HEAD> <TITLE>My App</TITLE> <LINK rel=stylesheet type=text/css href=style.css>
this is the first page : index.html <!DOCTYPE html> <html> <head> <link rel=stylesheet href=../test/style.css>
<html> <head> <meta http-equiv=Content-Type content=text/html; charset=UTF-8/> <meta name=layout content=main /> </head> <body> <div class=nav>
Inside my index.html.erb <script type= text/javascript> var msg = Hello World ; </script> i
<html xmlns=http://www.w3.org/1999/xhtml xml:lang=en lang=en> <head> <meta http-equiv=content-type content=text/html; charset=iso-8859-1 /> <meta name=author content=bbbbb />
I want to call a css from my index.html, and the css is in
I have an index.html and global.css files. When I open these files at Coda,
in my code for index.html I use jQuery and have a link with id
http://something.com:80/somedir/index.html?type=test;one=onevalue#nose This is typical URI structure my question is what is #nose and how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.