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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T22:41:52+00:00 2026-05-29T22:41:52+00:00

I got a CSS3 tag called body:before , and I want to use JavaScript

  • 0

I got a CSS3 tag called body:before,
and I want to use JavaScript to set the height and width of body:before.

How can I do that?

  • 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-29T22:41:53+00:00Added an answer on May 29, 2026 at 10:41 pm

    You can’t. One possiblity is to use a class or ID:

    .someClass:before {
        /*Styles here*/
    }
    

    You can then apply the someClass class to the elements in question by setting the className property:

    yourElement.className = "someClass";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this layout that i want to cut into html/css, but i'm struggling
Currently I've got an H1 tag set to a colour of #8c0000 (a deep
I want to make a jquery version of this css3 effect so that it
Is it possible to use CSS3 gradients for styling fill property? I know that
I've got the following code and I'm trying to use CSS2 or CSS3 to
Got a class that serializes into xml with XMLEncoder nicely with all the variables
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
got a PictureBox (called i_MC) and i draw a simple image (m_ImgMCN) on it
I've got a table with CSS3 alternating row styles but I need to override
I've got a box that changes size when being hovered. However, I would like

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.