views:

113

answers:

3

Hi,

I created a dropdown box which will help wrap long texts in the box. Now, when i use that control in a separate solution, it reads the .css file properly and all the style, font, alignment is proper. But if i integrate it with my application, none of the formatting read from the .css file works. Am not sure how to debug this stuff too. Do suggest some solution where i could at least figure out why the .css file is not working when i integrate it with my application.

Thanks in advance, Geetha

+1  A: 

Is the CSS file loaded by the page?

If you're using Firefox, take a look at FireBug, which has some great tools for checking the actual rendered HTML and CSS of a page, after javascript has run.

If you're using IE, version 8 has Developer Tools (similar to FireBug and the old IE 7 Developer Toolbar) which can be accessed by pressing F12, or on the menu bar, otherwise, you can get the IE7 Developer Toolbar from Microsoft here.

Using either of these tools will help you see what's actually going on with your html and css.

Zhaph - Ben Duguid
Firefox + Firebug is the key for html/ccs/javascript debugging. If you haven't installed it, do it now.
Francis Lee
A: 

Please refer the source code in the link given below...

http://www.scottdarby.com/plugins/stylish-select/0.3/

It is exactly the same dropdown that am trying to integrate with my application.

Thanks, Geetha

Geethapriya
Without knowing how you've coded it up, including the CSS includes, etc, it's going to be hard to make recommendations I'm afraid.
Zhaph - Ben Duguid
ok..this is how i have coded.. i have an aspx page, that has the required links to the .js and .css files of the source code.. then i create a dropdown in the aspx page, populate it and then pass the id of the dropdown to the sselect() function of the javascript file(stylish-select.js)(Pls refer source code in the link). Then the javascript picks the formatting stuff from the .css file and it is rendered..As i said b'fore it works fine on a separate appln in asp.net but am not able to integrate it with my application..
Geethapriya
workin nw...thanks lots..
Geethapriya
A: 

And the challenge here is, i have to get the dropdown done in IE6.. Is there any possibility to debug it in IE 6?? Please let me know!

Thanks, Geetha

Geethapriya
Zhaph - Ben Duguid
Thanks for that..i will try it out..
Geethapriya