html

How to add a background Image using CSS that looks like a border down each side of a div

Basicly I want to create a custom border, down the left and right side of my content div. I have managed to create something that half works. The problem I am getting it aligning the divs so that are flush to the content div and look like borders rather than floating lines. It is hard to explain so please see the attack image of what I w...

Styling Browser Scrollbar

I saw this years before, but since it was not widely supported, websites are dropping usage of it. I am currently designing a website which will have scrollbars inside the design and wondering whether CSS2 have any specification on styling browser crossbars because the default colours doesn't fit. If there's no specification, any refere...

Make an iframe fill to bottom of screen without using tables

I want display a header with arbitrary content above an iframe that takes up the rest of the screen. I have managed to get this working with tables using the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html> <head> <style> html, body, iframe, ta...

set overflow hidden in some cases

Hello, my question is How can I set overflow hidden in cases where the html go's outside the screen Right now I have set html {overflow: hidden;} in the head tag off the page. So, it's hidden all the time In my particular case the errors that I show in the registration process cannot be seen on my 13inch laptop, but I don't want to sh...

Using Javascript to add HTML?

Hi, I was wondering if it was possible to get Javascript to write some HTML onto the page in a certain DIV. This is due to the fact, there are certain areas of the site where i don't have access to the markup. But i would like to add a small section there. For example the container i want to add some html to is <div id="topics"></div...

How to add some HTML to every HTML document served?

I need to add a script before the </body> tag, so instead of modifying all the pages, I was wondering if I could configure the server to add some HTML before that tag for every HTML document being served? ...

How to make a DIV section clickable?

I have written a web page in which links are all contained within their own tags. I've also made them all button styles with CSS (border, background color, padding). How do I enable the whole DIV to be clicked to activate the link? ...

How to disable [marquee] tag with CSS? Is this possible?

I have inherited an app where users can insert their own HTML responses. I can only set a global CSS file and a global JS file for this app. Recently, some of the users have awakened an ancient evil, known as the <marquee> and <blink> tags. I can't strip the tags out on input or output, could I at least disarm them with a CSS rule? bl...

External HTML file into Dynamic Text Field in Flash/AS3

Hi there, I've looked through the forums, and couldn't find the answer to my question outright, so I figured I'd just ask it. Apologies if this question has been asked already. I'm trying to load an external html file into a dynamic text field. The dynamic text field has html display enabled. The html file contains a list of links in ...

What’s the correct scope value to use for an HTML th table cell than spans several columns?

Say you’ve got an HTML table, with a th cell that spans several columns, e.g. <table> <tr> <th colspan="3" scope="?">Scores</th> </tr> <tr> <th scope="col">English</th> <th scope="col">Maths</th> <th scope="col">Science</th> </tr> <tr> <td>12</td> <td>16</td> <t...

HTML default element size (Scaling HTML pages)

Hello, Is there a way to work out the likely size of an HTML element, an H1 tag for example in pixels relative to the size of the view port. I am wanting to display HTML pages within within pages, and I want to scale the content appropriately. Clearly, if an element specifies a height in px or similar, I can scale that down easily, but...

Getting footer the stay at the bottom

Hello, I'm trying to make the footer stay at the bottom using CSS, - sticky footer: .wrapper { margin: 0 auto; padding: 0 0 0 0; width: 100%; text-align: left; background: #F5F5FF; } .page .footer { left: 0; width: 100%; min-width: 300px; position: fixed; margin-top: -150px; } .tfoot { background: #3E5C92; colo...

Two divs with fluid content floating next to each other. IE 7 Not displaying the correct layout.

The Case I have two floating divs next to each other. Both have "fluid" contents and I want them to stay next to each other unless they touch. Then, I want them to be stacked. The problem is that my fluid content (like text or a list) crumbles in IE 7 as soon as the two divs touch. On top of that, this only happens with some IE 7 versi...

HTML/Text Spacing Problem

As you can see from the image above, I'm having a few problems. The Image, if the above won't load I'm using CSS to keep everything in place... do you know what could be causing this? ...

header Location redirect with anchor tag and IE7

Hey there! Here is my issue, it could just be a browser issue but any help/ideas would be awesome! Pretty much I have the following redirect: header("Location: page.php#images"); In most modern browsers it will redirect to page.php#images without any problems but in IE it seems to strip the #images. Has anyone come across this? So ...

tab view in css with tables

I need a tab view in css with each tab showing a dynamic table. The complete table is dynamically constructed in loop and only after that should the tabs should hide and show each of the table corresponding to each tab. Any suggestions? The content of the tab is within list item and in loop only. The development is in Django/Python on ap...

How can I instantiate a comment element programatically using lxml?

Hi there I'm using lxml to programatically build HTML and I need to include a custom comment in the output. Whilst there is code in lxml to cope with comments (they can be instantiated when parsing existing HTML code) I cannot find a way to instantiate one programatically. Can anyone help? ...

Why can't I center with margin: 0 auto?

I have a #header div that is 100% width and within that div I have an unordered list. I have applied 'margin: 0 auto' to the unordered list but it won't center it within the header div. Can anybody please tell me why? I thought that if I define the width of the parent div, then the unordered list should be able to center itself with ma...

Do browsers widely support numeric quotes in attributes?

There exist other ways of linking to JS, apart from this (the usual).. <script src="myscript.js" type="text/javascript"></script> ...that utilize other quote types: <script src=&#34;myscript.js&#34; type=&#34;text/javascript&#34;></script> Are these widely supported in modern browsers, and older browsers in use, such as IE6? Basica...

font size not applied in IE8

Guys, This is driving me mad... I was doing my asp.net sandbox website when out of the blue I start to realize that in IE8 (IE7 compatible view or not) does not show CSS font proper... in the image below I removed all CSS and add only one: body { font-size: 11px; } and this is (sadly) the result: Is there any soul willing to...