I am trying to get a text to wrap around a div in my XHTML. My XHTML looks like so....
<div id="cont-content">
<p>content</p>
<p>more content</p>
<div id="content-sidebar">
BLALALALALLAAL
</div>
</div>
And my CSS looks like...
#content-sidebar {
display: block;
float: right;
width: 270px;
height: 400px;
...
I'm trying to make a front end for all my music and video files on a spare PC I have but have come up against a bit of a road block. I originally wanted to stream the movies (avi, mpeg, flv etc) using a flash media player but after a bit of searching it seems that flash can only stream flv's. Obviously, I don't want to convert my whole h...
Hey,
I have a sidebar on my webpage that is supposed to span 100% of the page (vertically). It is then supposed to stay there, so when the rest of the content scrolls it does not. To do this, I used:
body
{
height: 100%;
}
#sidebar
{
height: 100%;
width: 120px;
position: fixed;
top: 0;
left: 0;
}
This works g...
While adding some very basic script tags I found a wierd "bug" in firefox (as well as IE) I added these two lines of code to my .htm page
<script type="text/javascript" src="js/jquery.js" />
<script type="text/javascript" src="js/jquery.corner.js" />
To me as well as opera and chrome they look like ordinary script tags however to fire...
I've finally got the datepicker to work on my MVC demo site and also the dialog. I still have a few issues: the dialog doesn't show in IE7 so when I click a link where a confirm dialog is supposed to appear it just removes the row without showing the dialog.
It works great in Firefox3 and Safari.
Please try for yourself on my Demo sit...
Hello sir,
I had a task were I have to process one big .xml file and genrate different .html from it by using xslt. Now after release coustomer wants to combime all the html to single .mht file. I have converted the source code to genrate the .mht file, but I am having problem in linking the html file in the .mht.
I have created a .mht...
I do most if not all my sites to have the page title block (generally a styled h1 on my pages) to link back to the home page.
Should this be linked on the first page, i.e. the home page? I read that this shouldn't be linked, but one thing I do when I go to a page for the first time is mouseover the title to check the status bar to see ...
Hi all,
I'm wondering if I should bother at all about the markup language, as long as i produce valid markup.
I've read articles that point out HTML is the best choice and they come directly from the horse's mouth (the browsers implementors!):
http://webkit.org/blog/68/understanding-html-xml-and-xhtml/
https://developer.mozilla.org/e...
Hello all,
I am relatively new to web development and learning all the time. I have recently come across 'Conditional Comments' when viewing source code for different websites. I think i now understand what they do but am unsure as to when to use them.
I have seen them mainly used for implementing different stylesheets when it comes to...
What is doctype and why do I want to use it?
What are the different doctypes I can use?
What is the difference between standards and quirks mode, what are some quirks I may run into with differently set doctypes?
Lastly, what is the proper doctype that I should be using?
...
I'm writing a javascript based photo gallery with a horizontally scrollable thumbnail bar.
>> My current work in progress is here <<
I would like the thumbnail bar to stop scrolling when it gets to the last thumbnail. To do this I need to find the total width of the contents of the div - preferably without adding up the widths of all t...
Lets say I have 5 pages: A, B, C, D, and E. I also have a horizontal menu, and each item has a light gray background.
Each menu item has a:hover that gives it a medium-gray background, but I want the active page to have a black background, so I define
#black
{
background-color: #000;
}
Now when the user is on B.php, I want the B ...
I've been developing with XHTML, CSS and Javascript for about 4 years now.
I love it a lot and hate it a little. I've looked into Flash and Silverlight a bit, but as a developer, I'm not too keen on them.
One reason is that they lock you into a vendor and generally, into using that vendor's tools. E.g. Adobe Flash or Microsoft Visual S...
I'm playing around with writing a jQuery plugin that uses an attribute to define form validation behavior (yes, I'm aware there's already a validation plugin; this is as much a learning exercise as something I'll be using). Ideally, I'd like to have something like this:
Example 1 - input:
<input id="name" type="text" v:onvalidate="retu...
Hi, I just encountered this article of an extention of css sprites that enables the spriting trick with foreground images . I tried to use the technique on :hover but it doesn't appear to work in IE and Opera. See my attempt to use this technique for a menu here: http://www.kavoir.com/examples/jenny-css-sprites/menu.html
On FF and Safa...
I have a regular form with a url as action to which the form submits when the submit button is clicked (or enter is pushed).
Now I need a second button that goes to another page. I know I should be using a link for this, but as to client's requirements, it should look like a button.
Because the CSS sheets are not made in-house (and commu...
I tend to take the academic approach all too often and adhere to strict principles in my development when the reality is that I could have finished the project sooner had I been a little less cautious. I'm looking to find the right amount of practicality.
I want to take the "Zen" approach to designing a site which (in my words) says "Us...
This has been confusing me for some time. With the advent of utf-8 as the de-facto standard in web development I'm not sure in which situations I'm supposed to use the html entities and for which ones should I just use the utf-8 character.
Examples: em dash, ampersand, etc.
Please do shed light on this issue. It will be appreciated.
...
Hi,
I have a question on how best to get xhtml into excel. let the user edit it in excel and then get back to xhtml at the end.
The background is that I have a web app in which the texts are stored in xhtml. These I can export to an excel file with the html in the excel cell.
I can also reimport this cell back to xhtml but the problem...
I would like to add a path "images/" to all img tags in my html file. Is that possible and if how can I achive that?
...