html

Double border-spacing with thead in Chrome and Safari

I have a table that uses thead and tbody. The table has border-spacing set, and in Chrome and Safari the space between the header row and the rest is doubled. It was reported as an issue for Chrome late last year, but that's the only reference to this I can find. Has anyone else had this, or know how to get around it? <table style="bor...

Change the look of a website when inside an Iframe

Hi all. It is possible to change the look of a website (say colours, width) when it is contained in a FRAME? I am looking for some technique that is gonna work in all browsers. ...

How to Remove author credits on posts on my wordpress site?

How do I remove the date added/admin/no comments section of each one of my posts in my wordpress blog here http://www.kvylfm.com ...

HTML Table column width practices

What are good practices when selecting column widths in a table? Let's say I have four columns, name (variable width), description (long content of text), count (max 3 chars), date (fixed format). What would be a good practice? I'm thinking fixed width for descr., count and width (thus actually also making name "fixed" width). But my re...

how use the right css for a device

i'm creating a site and i should use different css for different device (pc, ipad, iphone) it is possible to know which device people use to select the css??? ...

Make text selectable in a textarea within a jQuery Sortable parent

I have a table whose body I've made sortable using jQuery UI's Sortable function. Within this sortable table, I have a textarea which allows the user to enter comments about a given table entry. <table id="status"> <thead> <tr> <th>Name</th> <th>Comment</th> </tr> </thead> <tbody> <tr> <td class="dragHandle">Jason</td> <td><text...

displaying names in an array

using array_chunk I have split an array of names to groups of 4 names, I want to take one of these groups and display it in 4 divs, divs are named after one of the member group names, example group->jhon, mark, giovanni, clara then divs are <div id="jhon></div> <div id="mark"></div> and so on.. I want to display only the other names in...

Hakyll generates weird HTML - can anybody explain reason?

Hello, I use Hakyll to generate some documentation and I noticed that it has a weird way of closing the HTML tags in the code it generates. There was a page where they said that you must generate the markup as they do, or the layout of your page will be broken under some conditions, but I can't find it now. I created a small test page ...

Getting error -TypeError: service.UseService is not a function - when using webservices through javascript

Hello. I'm somewhat new to web development. I was following some web services tutorials and everything went good, from writing the web services to displaying their results after you clicked on a button on a html page. So I tried to run the service via javascript when the page loads, like this: <html> <head> <SCRIPT language="JavaSc...

are using <labels> in html important?

excuse me for the maybe very stupid question, but my curousity is killing me, and plus im new to this, but are using labels important in your markup, andh why? i.e. <label for="birthdate">Birthdate:</label> <input type="text" id="birthdate" name="birthdate" /> why must i label this input, why is it beneficial to the user, wh...

Javacript redirects to source code instead of loading

I'm trying to generate an Amazon ad that should look like this. <script type="text/javascript"><!-- amazon_ad_tag = "xxxxxxx"; amazon_ad_width = "160"; amazon_ad_height = "600";//--></script> <script type="text/javascript" src="http://www.assoc-amazon.com/s/ads.js"&gt;&lt;/script&gt; Below are parts of my script that should achieve th...

Correctly aligning image captions

How can I achieve a layout like this? Right now I'm using this HTML: <div class="image"> <img> <div class="caption"> Caption Text </div> </div> And this CSS: .image { background-color: #2A2A2A; } img { max-width: 590px; } But the .image box is too big (since it expands to fit its parent): ...

keeping links internal to an iframe

I am working on developing for lack of a better term, a portal application that consists of a series of deployed WAR files all deployed on the same Weblogic server. Basically, I have one application that serves the navigation and a few other things. This contains an iframe that I load the other applications into. However, when a link i...

How to add vertical gradient using css?

I have vertical submenu as under: <div id="dropdown_menu" class="menu"> <ul> <li> <a>First Link</a></li> <li> <a>Second Link</a></li> </ul> </div> I am putting bottom piece of background in css class 'menu'., top slice of background in .menu ul. Now, I have one vertical gradient that changes color from top to down (in whole vertical m...

.htaccess rewriteRule help

I have a link in my index.html: href="my_page.php?cat=14&p=1"; Now, how can I rewrite this so that it looks like this: /my_page/14/1 I have this so far, but I don't know how to add the ending '/1' to this: RewriteRule ^kategori/([0-9_]+)$ browse_cat.php?cat_gr=$1 [NC] Thanks ...

HTML formats correctly after applied focus.

I have a selection box that uses ajax to populate a div with new information. When I select an option the resulting text appears and formats correctly. However, when I select something new the resulting text does not format correctly and appears to be squished together. The problem goes away when I apply focus by clicking in the relat...

DIV positioning and aligning issue

Hi All, I am working on a template for a new website. I am having some trouble trying to get some containers to line up how I would like. I am trying to create a navigation bar out of several div's and then underneath this block have a body that contains several containers. I am stuck at 1) making the nav bar automagically align into ...

What's the proper way to add selected and related attributes to inputs?

What is the proper way (standards compliant) way to add selected, disabled and similar attributes to <input> elements in HTML? I have seen: <input type="text" disabled> <input type="text" disabled="disabled"> <input type="text" disabled="yes"> As far as I can tell, they all work, regardless of what the attribute's value is. What is...

jQuery slider trouble with keyboard

Hello everybody, I'm trying to make a better useable scrollbar (horizontal and vertical) for a touch screen. Everything works well except that some events don't seem to be supported by the slider plugin of jQuery (using 1.4.2 currently). Situation: I've made a div with overflow hidden and I'm overlaying the slider over the normal browse...

Form to jump to page

How can I make a form that allows users to enter a number and then goes to example.com/page/# where # is what the user typed in? I want this for a pagination "jump to" option. I can only use HTML and JavaScript ...