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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:45:31+00:00 2026-06-02T04:45:31+00:00

In this form I have a user message <span> . It ignores the style

  • 0

In this form I have a user message <span>. It ignores the style info given in the HTML and in the CSS style sheet. Also, if I update the using .html() the new text isn’t show.

$('#matting').append('<div id="register_user_box" class="inline_form" style="position: absolute; top: 20px; right: 10px; <br/><span id="user_msg" style="width: 90%; height: 15px; color: red; font-family: Arial; font-size: 11px;">Info msg</span><br/><form id="register_user_id" name="register_user_form"> <button id="cancel" onclick="cancel_register(); return false;" style="width: 63px; float: right; margin-right:8px;">Cancel</button> <button id="register" onclick="register_user(); return false;" style="width: 63px; float: right;">Save</button> </form></div>');

The info specified in style for user_msg is ignored. If I update the text with $('#user_msg').html(message); this is also ignored. What could explain this?

  • 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-02T04:45:33+00:00Added an answer on June 2, 2026 at 4:45 am

    HTML Syntax error – you didn’t close your <div> or the style attribute inside of it:

    $('#matting').append('<div id="register_user_box" class="inline_form"'+
      ' style="position: absolute; top: 20px; right: 10px; ' + // missing ">! 
      '<br/><span id="user_msg" style="width: 90%; height: 15px;'+
      'color: red; font-family: Arial; font-size: 11px;">Info msg</span> '+
      '<br/><form id="register_user_id" name="register_user_form">'+
      '<button id="cancel" onclick="cancel_register(); return false;"'+
      ' style="width: 63px; float: right; margin-right:8px;">Cancel</button>'+
      ' <button id="register" onclick="register_user(); return false;"'+
      'style="width: 63px; float: right;">Save</button> </form></div>');
    

    Also notice that <span>‘s are inline elements (see scrappedcola’s answer).

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

Sidebar

Related Questions

I have a registration form where this CSS rules apply. when user submits with
Let's say I have an user registration form. In this form, I have the
I have a form that and after the user fills in this form, I
I have this form right here, where the user will add the start date
I have situation like this: user submits form with action='/pay' in '/pay' I have
I have a form that allows a user to import a spreadsheet. This spreadsheet
I have a form whereby a user fills it in and clicks submit. This
my structure is like this: master page aspx(web form) ascx(user control) I have a
i have code like this. which is actually a form .which lets user updates
I have a form that takes user message and send it to the recipient.

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.