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 8922219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:46:42+00:00 2026-06-15T06:46:42+00:00

GAE provides a template system, and we may create a ‘base.html’, in which an

  • 0

GAE provides a template system, and we may create a ‘base.html’, in which an external CSS file (say, ‘base.css’) may be linked. However, how do I define some internal CSS in an extended html? I don’t want to define the CSS in ‘base.css’ because there are so many extended html files and they may conflict one with another. Right now, I have to do it inside the tag 🙁

To be specific:

extended.html:

{% extends "base.html" %}
  <style>   <!-- how to do this? -->
    h1 {
      font-family: Arial;
      color: olive;
    }
    h2 {
      color: red;
    }
  </style>
  <h1> ... </h1>
    ...
  <h2> ... </h2>
    ...
  <h1> ... </h1>
  • 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-06-15T06:46:43+00:00Added an answer on June 15, 2026 at 6:46 am

    Define a block in your base.html. Blocks are place holders that can be filled in from extended templates

    Approach1:

    base.html

    <style>
    {% block css %}{% endblock %}
    </style>
    

    extended.html

    {% block css %}
      h2 {
      color: red;
    }
    {% block %}
    

    Approach2:

    base.html

    <head>
    <link href="base.css" rel="stylesheet">
    {% block css %}{% endblock %}
    </head>
    

    extended.html

    {% block css %}
     <link href="extended.css" rel="stylesheet">
    {% block %}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The GAE Datastore provides a class PreparedQuery , which is the compiled form of
I am using GAE with Java to dynamically create a text file based on
I'm interested in porting an existing application which was written using Spring/Struts2/Hibernate to GAE.
I am using some strings in my gae java code,which user has to configure.I
I am running a GWT + GAE Maven project in Eclipse, which has a
I want to do something very similar to the Guestbook example GAE provides in
Overnight hack, trying to create an environment where GAE code (using Python libs/packages) could
I'm using GAE + Python to create an application that needs to send real-time
I'm using the latest tools provided by the latest Google App Engine (GAE) environment,
In GAE, I have a model called Foo, with existing entities, and attempt to

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.