html

top frame in the site

hi i want to create a frame in my site like the google image section im using php for server side scripting ...

How much more efficient is one big image rather than many small images. Facebook style.

So I was looking at the facebook HTML with firebug, and I chanced upon this image and came to the conclusion that facebook uses this large image (with tricky image positioning code) rather than many small ones for its graphical elements. Is this more efficient than storing many small images? Can anybody give any clues as to why facebook...

Web Design Advice - Questions to WebDesign Gurus/Mentors

I am a junior web designer who has fair amount of knowledge in photoshop, HTML, CSS. I want to move to the next level of designing websites that work cross browser + look cool. Here's what I need some help on. Can you experienced gurus out there recommend me good books/advice that will help me fine tune my designer skills and help me ...

Do I need to declare XML on a page using the XHTML doctype?

I've been seeing some conflicting information that an XHTML document must also declare itself as XML. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; However, in other places I'm seeing (including w3.org) that the DOCTY...

Help modify a javascript - need to open link instead of displaying result

I'm trying to modify the code from this script. Basically I'm trying to get the script to send the browser to another page rather than display the results in a div. This is the code in question: <script type="text/javascript"> function openOneSlot() { SpinningWheel.addSlot({1: 'First', 2: 'Second'}); SpinningWheel.setCancelAction(canc...

How can I get the DOM element which contains the current selection?

You can select a part of a web page with the mouse. I know that I can get the currently selected text but how can I get the DOM element which contains the start or end of the current selection? ...

Convert doc/docx to semantic HTML

I would like to convert doc/docx documents to semantic HTML. Some wishes/requirements: Semantic HTML such that headers in the document are <h1>, <h2> etc., tables are <table> and so forth. Should preferably be possible to handle headings, lists, tables and images. Graphs and math formulas is a nice extra. • Doesn't have to be conver...

Using 2 buttons in same ASP.NET MVC Form

In general, is it possible to have two different buttons within the same form that post to different controller actions in ASP.NET MVC? I am essentially trying to have two input (type="button") tags in the same form, but I want them to perform different controller actions. I would like to do this in a few cases because I think it provi...

IE 7 Word-wrap bug

Hello, I have a problem with my html page. I have text that is word-wrapping in a defined width box. It looks great in of course Firefox and IE8. However, when checking its backwards compatibility I found that the word-wrapping causes a random spacing issue where one line of text seems as if it has a margin-top specified on it. Anyon...

Javascript problem solved, don't understand what the problem was.

In the HTML head section: <script type="text/javascript" src="Scripts/editScripts.js"></script> Just above the </body> tag(closing tag, bottom of the html page). Also: this is the old code, this is how it was when it was not working: <script type="text/javascript">if(document.getElementById)initialize();loadEvents();</script> <...

recommendations on a book to learn about spacing

i am interested to learn more about spacing, offset, and stuff that applies to text and tables. i think in the beginning it probably just applied to html, but now these concepts are universal. please recommend a tutorial or book to help me understand these spacing concepts. ...

Matching heights of inline elements

Hey peeps, I have an issue (about the third time I've ran into it actually) where I have a container which holds a left and right div. If they are of different lengths (right being longer than left or the other way around) how can I get the other one to stretch [in height] without using Javascript. I don't want to have to result in ta...

HTML Validator in Javascript/PHP? ( not necessarily XML )

I'm looking for something like http://validator.nu/, I'll be validating html input ( string ) and I want to notify the user if there are any missing end tags, whether a certain element can't have a certain attribute, things of that nature ( HTML 4.01 Strict validation basically ). Sidenote: I won't be dealing with XML/DTDs, and I don't ...

absolute positioning of image?

does this mean the image will be locked in place no matter what's around it? ...

CSS - Only Horizontal Overflow?

Is it somehow possible to achieve only horizontal overflow in CSS 2.1? overflow: auto; Will cause a block element to have both horizontal and vertical scrollbars, I want a block element (let's say ) which will display only horizontal scrollbars. How to do that? ...

HTML; Questions from a database

I am trying to build a web application to help students memorize answers to test questions. I have a mySQL database containing the questions, answers, categories, difficulty ratings and random numbers (for sorting the questions randomly). What I need to do is allow the user to choose a category, then the app will display the questions ...

Stretching LI and contents

Please consider this site. I'm having trouble stretching the submenu list items in IE7. Notice that when you hover over one of the LIs under Restaurants, the green doesn't fill the whole line. I've tried {width: 100%}, but that didn't help. Any ideas why this is OK in Firefox but not IE? And how to fix it? Thanks. UPDATE: I can...

CSS - a:visited:hover ?

How can I apply a font color only to hyperlinks which have already been visited and are being hover by the mouse? Essentially, what I want to do is a:visited:hover {color: red} ...

Convert CSS Style Attributes to HTML Attributes using Perl

Real quick background : We have a PDFMaker (HTMLDoc) that converts html into a pdf. HTMLDoc doesn't consistently pick up the styles that we need from the html that is provided to us by the client. Thus I'm trying to convert things such as style="width:80px;height:90px;" to height=80 width=90. My attempt so far has revealed my limited un...

CSS Help - How can a DIV ignore css previously set on the page?

I am using AjaxControlToolkit CalendarExtender. Some previous rule in my stylesheet is affecting div's within the calendar. div#paymentRegion div { float:left; width:49%; } There are DIVs within the calendar that are being forced to 49%. How can I have the calendar ignore the previous settings and use the styles that come wit...