Solved

How to add css class for object tag in asp.

Posted on 2009-05-04
3
742 Views
Last Modified: 2012-05-06
How to add css class(.stronger) for object tag in asp.

Strong.css:-

.stronger
{
width: 400; height: 25; background-color: #FFFFFF
}

Classic asp Page:-

<Object  ViewAsText></ Object >
0
Comment
Question by:ravindra333
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Accepted Solution

by:
ALaRiva earned 500 total points
ID: 24300320
There is no CLASS attribute for the Object Tag.

Simple solution is to wrap the object tag in a div and assign the class to that.

<div class="stronger">
    <object . . . >
<div>

HTH
- Anthony
0
 
LVL 31

Expert Comment

by:Wayne Barron
ID: 24300527
sorry ravindra333,
I am afraid that ALaRiva is correct.
There is no way to assist a style to an Object Tag.
I just ran a test, and once you include the style within the Object Tab.
It breaks it.

Carrzkiss
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Get hold of longitude and latitude in iframe string 11 51
Issues with Insert statement 12 30
Passing Parameter to Stored Procedure 4 32
Display field if column exists 7 33
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

761 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question