css

Is there a way to specify overflow in CSS?

I have been using a lot of 'position:relative;' in my design, I just find it the easiest way to get everything where I need them to be. However, the more items I add on my site (each one with their individual div) each one ends up further and further at the bottom of my page, so I have to manually position them higher. This leaves a lo...

Are good CSS design and IE6 / IE7 support mutually exclusive?

Like every web developer, I usually curse the creators of IE6 with foul and untimely deaths at least once a week. Yet my company requires me to keep supporting that most-hated of browsers. My problem today has been wanting to first use a wildcard in my CSS and then trying to use the "inherit" property instead. Neither of which are suppo...

Including an image in a firefox extension

Hey, I would like to use an image in firefox extension I am developing. Can someone tell me how to include the image. I used the following but it did not work. var divTag = content.document.createElement("img"); divTag.id = "div1"; divTag.src="chrome://ff_extension/content/image1.gif"; divTag.setAttribute("align","center"); ...

Some sort of master page for java servlet using css

Hi I am creating a web application using Netbeans and servlets. I have used some css into my pages. Is there a way how I can put the banner and menu which every servlet will have in one place so I do not need to rewrite this in every servlet? Thank you ...

Why does my CSS (apparantly) force a scrollbar to appear regardless of content size?

I apologize for the long paste of code here, but this has been bugging me for a good few hours now. I'm working on porting my entire site over into a new template, and I'm trying to make the various areas and things more size-aware so I can contain most of them in resizeable dockable windows and things, a very neat concept that's working...

How to have a mutli-line input or textarea that wraps?

I'm trying to achieve a layout in html that looks exactly like this when printed: Comments: _____________________________________________ _______________________________________________________ ...where the underlined portion is a single input tag of some kind meaning it could also be a textarea or something else, as long as the user...

Html table (text) to image using C#

Can anyone point me to some sample code in C# for converting an html table to image? I know how to convert text to image but i need to create an image of well formatted text. The whole text is formatted in html table. ...

jquery script executing but not setting css for .show

Hi, I have jquery code that is being reused by a repeatable partial view on an asp.net mvc page but the script is not executing as I expect it should. The scenario is not that complex, I have a page with multiple reviews for an item, and users who are logged in are allowed to 'vote up' or 'vote down' a review via a thumbs up/thumbs down...

Display problem in IE6

I have a web page that shows a schedule. The schedule is being shown incorrectly in IE 6. Here is a schreenshot: SCREENSHOT DELETED FROM WEBSERVER The Green menu on the left is floated left. In IE6, the schedule table is being shown below the bottom of the menu. I can replicate the problem in modern browsers by applying a clear: right ...

Using jquery tabs with my layout my tabs have a huge gap before they start

I currently have a 2 column site layout, with a footer/header, a fixed width left column which contains a menu, and a right hand column which takes the rest of the available space. My lefthand column contains a fold out menu, and it seems that when I have tabs in the right hand column, the text within the selected tab only begins after ...

Help needed in figuring out validation and display issues !!

Hi all, I am developing a website for a friend which was earlier developed by some other guy, basically i am a php pro and dont ve much experience in html (or untill now) ... now, i am trying to validate my webpage, earlier it was showing 162 errors, i ve brought it down to 1 error (thankyou) ... ha ha earlier with 162 errors, it was ...

How to visually expand an HTML element within a div block?

I have split up my HTML page using div blocks. Within one of the div blocks, I have created a table. I want this table's width to expand to all available space. 2 problems: A) If I set the table's width to 100%, it appears to expand to the size of the entire page, not the div block. B) Furthermore, it doesn't appear to be clipped by the...

IE 6 does not recognize the current page

I am using a simple list as navigation which brings up the appropriate background image depending on the state of the link normal, hover or current. In IE6 the current or actual page is being ignored, not displaying the different image and leaving the link active. The code is - <div id="mainNav"> <ul> <li><a href="../index.html">H...

How to design html pages which renders properly in windows while staying in Linux?

I usually prefer linux for programming( i program in django on Ubuntu). But often i need to design html pages which renders properly in Windows and Linux? How iam currently doing the above is Design (Fix) html page in linux Reboot to windows check whether the design is proper or not. if not reboot to linux repeat step1 ,step...

HTML border differences in FF and IE

I'm having some trouble identifying the problem with my html code. I've created a table and it is like this on Internet Explorer (which is the result I'm looking for): But it comes up like this on Firefox: ...and I don't know how to fix this. Please help, thanks. ...

IE6/IE7 + Rounded corners...extra unwanted padding!

Basically speaking, FF3 and IE8 render it this way, which is what I want: http://img4.imageshack.us/img4/3899/cornersfirefox.jpg However, IE7 and IE8 render it like this: http://img18.imageshack.us/img18/4526/cornersie.jpg I use this solution for rounded corners without images: http://www.editsite.net/blog/rounded_corners.html An...

IE not allowing onClick event on dynamically created DOM 'a' element

I'm having issues with internet Explorer. I have a link which duplicates a file upload element on a form. The code which duplicates also appends a hyperlink to the duplicated upload element which is supposed to remove the duplicated element a simple remove this link. The issue is that this code runs fine in firefox but it doesn't run at...

Forms with multiple columns, no tables

How to position a complex form with multiple fields in line across the screen? ...

Style input element to fill remaining width of its container

Let's say I have an html snippet like this: <div style="width:300px;"> <label for="MyInput">label text</label> <input type="text" id="MyInput" /> </div> This isn't my exact code, but the important thing is there's a label and a text input on the same line in a fixed-width container. How can I style the input to fill the remai...

Page-specific css rules - where to put them?

Often when I'm designing a site, I have a need for a specific style to apply to a specific element on a page and I'm absolutely certain it will only ever apply to that element on that page (such as an absolutely positioned button or something). I don't want to resort to inline styles, as I tend to agree with the philosophy that styles be...