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

  • Home
  • SEARCH
  • 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 7723717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:30:45+00:00 2026-06-01T04:30:45+00:00

I am new to css and web design so please be gentle ;-) I

  • 0

I am new to css and web design so please be gentle 😉

I was wondering if it is possible to define the background of a page (i.e. what color the screen is) without referring to the tag. So not doing the typical:

body { background-color: #fff; }

I need to do this since I am writing css to stylize our login page, but only have access to the template html to be inserted into the page body. So my html looks something like this (very simplified):

<div id="loginpage"> 
  <div id="title"/>
  <div id="content"/>
</div>

I couldn’t find any answers online since this seems to be an unusual way of doing it.
So: Is this possible, if yes – how?

  • 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-01T04:30:46+00:00Added an answer on June 1, 2026 at 4:30 am

    You can use the :root selector if you don’t mind about losing IE6-8 support.

    But have you tried targeting body or html, in spite of the fact that they’re not in the code? They still get inserted into the DOM.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to doing layouts with CSS (I haven't done any web design for
In Simon Collison's new old Responsive Web Design , in the CSS, there are
I'm new to web design, so please forgive if this is super simple- I've
I'm fairly new to web-centric design and programming. I've got a HTML + CSS
I am new to web design. Please correct me if my understanding is wrong.
I am new in CSS so please help me in this problem. I hope
Since i am new to CSS, i am not sure if the following page
I'm fairly new to web design, I've just created following website http://www.janewaltonwatercolours.co.uk , and
So, I'm new to dynamic web design (my sites have been mostly static with
I am new to CSS, so please bear with me. I have this form

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.