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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:45:38+00:00 2026-06-18T05:45:38+00:00

I am currently working with Vert.x. I can easily load the js files needed

  • 0

I am currently working with Vert.x. I can easily load the js files needed but when it comes to CSS, nothing loads EVER. So i guess my last resort is to write up some js to set these css rules(super last resort is to write the css INSIDE the html file).

Is there a nice way to do this?
I was thinking something like:

function loadIndexCss()
{
    document.getElementById("p2").style.color="blue";
    document.getElementById("p2").style.fontFamily="Arial";
    document.getElementById("p2").style.fontSize="larger";
}

save that in a file, then:

<script type="text/javascript" src="../css/css.js"></script>

<body onload="loadIndexCss()">
    <form id='frm_login'>
        <fieldset >
            <legend>Admin Login</legend>
            <label for='u' >Username: </label>
            <input type='text' name='username' id='u' maxlength="25" class="blocky"/>
            <label for='p' >Password:  </label>
            <input type='password' name='password' id='p' maxlength="25" class="blocky"/>
            <br/>
            <input type='button' name='Login' value='Login' id="btn_login" />
        </fieldset>
    </form>
</body>

will that even work? if this is stupid, please teach 🙂

  • 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-18T05:45:39+00:00Added an answer on June 18, 2026 at 5:45 am

    Yes, that should work. You can also do it the dirty way, creating named style tag:

    <style id="sty"></style>
    

    and then add the CSS:

     document.getElementById("sty").innerHTML = "a {color: blue}";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently working through a Teach Yourself WPF tutorial. Usually I can mentally convert from
I currently working on DOM and i wonder how can change the place of
Currently working with Oracle, but will also need a solution for MS SQL. I
Im currently working on making a flash platformer engine...but my collision detect needs some
Currently working on a project I'm uploading a series of JSON files to Amazon
Im currently working on a RTX/Janrain integration with bbPress, but im stuck with a
Im currently working on a timer app similar to apple's default Clock utility but
im currently working with CodeIgniter. My Front Controller loads 1 of 2 Library depending
Currently working on rails 3. I made changes in my css file to add
Currently working with converting SQLException error messages into messages that are more useful for

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.