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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:00:31+00:00 2026-05-31T05:00:31+00:00

I set a div style programicaly like below: oDiv.Style.Add(text-align, center); it works in IE

  • 0

I set a div style programicaly like below:

oDiv.Style.Add("text-align", "center");

it works in IE ,But not in FireFox,

for FireFox I must write this one:

oDiv.Style.Add("text-align", "-moz-center");

How could I have both?because if I write both ,just the second one works,
please help me.

  • 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-31T05:00:32+00:00Added an answer on May 31, 2026 at 5:00 am

    thanks All.finally I could solved it with this :

    .newClas{
       text-align: -moz-center;
       #text-align: center;
    }
    

    the # sign must be before next line in the css class

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

Sidebar

Related Questions

i have image set div tag like below <div style=width: 600px; background: #CCC;padding: 50px;
I have tried this login_div.Style(display) = none; But it's not working.how can I set
Div height is not support in below code <html> <head> <meta http-equiv=Content-Type content=text/html; charset=windows-1252>
I'm trying to set the style name of the div of the split between
I'm tring to set the style on the first div inside a fieldset and
how can i set div position at the center of the page with size,
I have set a fix height of DIV and set its overflow-y:scroll but the
I have a div class set up with the following CSS style: div.multiple_choice{ border:
I'd like to set the div width equal to the image width. Here's what
Hi im trying to set the css style for this but I dont know

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.