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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:12:13+00:00 2026-06-04T06:12:13+00:00

I have a form and there’s a thickbox binded to an <a> element on

  • 0

I have a form and there’s a thickbox binded to an <a> element on it. When you click the element it loads an URL inside the box and runs some script. Due to restraints of the platform I’m working on, I have no access to the scripts, to the thickbox.js or to the HTML that’s being loaded. All I can do is write my own styles and scripts.

The problem is that something is giving several inline styles to #TB_window after it’s loaded. Take a look:

<div id="TB_window" style="position: fixed; z-index: 10002; top: 50%; left: 50%; margin-left: -315px; width: 630px; margin-top: -220px; display: block; ">

My whole problem lies on the width, I need to override that style. I tried to bind a click event to the <a>, like this:

('a#btnReferAFriend').click(function(){
    if('#TB_title.length'){
        $('#TB_window').css('width','400px');
        alert($#TB_window.css('width');
    } else {
        alert('Wrong');
    }
});

The result of that is script is an alert displaying “400px”. But just after this my style is overriden by the inline ones. I don’t know exactly what’s happening, I think another script is running somewhere, maybe a modified thickbox.js?

What should I do to override the inline styles after they’ve been applied?

  • 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-04T06:12:14+00:00Added an answer on June 4, 2026 at 6:12 am

    You can use the following style:

    #TB_window { width:400px !important; }
    

    This should override the width that is found in the inline style.

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

Sidebar

Related Questions

Scenario I have a Windows Forms Application. Inside the main form there is a
I have a form loading inside my page and there is a button out
I have a page with <form> tag. Inside a form there is a lot
Simple, I have a GridPanel and a FormPanel. Inside the form there is a
I have a form where there are 6 items, each of which can be
I have a enrollment form where users have to input there address. I am
I have an application in which there is a form which I want to
I have this situation: There are a login page with a login form (form
I have a project with a main MDI form. There is a child MDI
I have a VB6 app. There is a main form. It houses a user

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.