Hi. If this is my code, how do i set page1.html to show by default on page load?
Thanks in advance.
<head>
<title>Test</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<script type="text/javascript">
function swapContent(targetID, url) {
var target = document.getElementById(targetI...
I have two columns, A and B. When I add text (about 4-5 complete sentences) to column A, it just scrolls across the screen into column B.
What can I do to prevent this? Essentially, I just want the text in column A to "word wrap" in the space provided. I also want to avoid any scroll bars.
Any tips?
...
I have an HTML table, where each cell contains a large amount of data. I would like each cell to be individually scrollable (sort of like "panes"), so I created a CSS class that includes the overflow:scroll attribute. However, the width is not the same for each time that I employ the CSS class. This is causing a cell padding issue. W...
I want to turn down the opacity on an element when a user performs an action.
The current code I have is:
document.getElementById('MyOpaqueElement').style.opacity = 0.3;
// There are checks in the real code for NULL, etc.
This works on Firefox, Safari, etc. IE8 has different ideas about opacity. I have read a couple of articles but ...
I use this script to validate html form's
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.5.5/jquery.validate.min.js"></script>
<script type="text/javascript">
$(function...
for example what is the accessible way to code this design.
currently my company's CMS producing this HTML for this design
<div id="presentationsContainer">
<div class="ItemsContainer">
<div class="presentationsItemContainer">
<div class="TitleContainer">
Presentation October 20...
When I have the same image used for different elements (sprite images) I usually don't call that image again as this is a new HTTP request.
I rather use:
element1 {
background: url(someImage.png);
}
element2 {
background-image: inherit;
}
Is this saving HTTP requests?
Or if the browser is smart and I can use:
element1 {
...
I've noticed, that unless I use a cellspacing attribute set to 0px on my tables, they render slightly differently in IE8 depending on compatability mode. When set to on, the table cell spacing appears larger. I can mitigate this by setting cellspacing to 0, but I want to do it with css, and I can't find anything that causes the exact s...
I'm concerned about load times on home page of our site.
My home page uses a default stylesheet with ALL the styles for the whole site. I have background image references for elements on other pages (i.e. not used on the homepage). Do these background-image graphics get loaded anyways when a user visits the homepage of the site?
Or are...
I'm in the process of optimizing a high traffic site. The site I am working on has many widgets - say 20 or so and only 7 are loaded by default. I was thinking of separating my css and image sprites for faster load times for the default widgets.
For the rest of the non-default widgets, I was thinking of having a separate css file a...
Hi
I have problem with a preloaded image on Firefox. On (webkit) Chrome/Safari it looks fine.
Let's take a look.
I have :hover load image
the css file:
.zz{background:url(../img/guzik_01_ofirmie_PL_A.png) no-repeat; height: 1px; width: 1px; position:absolute; }
li#ofirmie{background:url(../img/guzik_01_ofirmie_PL_B.png) no-repeat; ...
Its in all in the title.
I'm trying to get a div on the left of the page to a static width 170px; this works fine.
What I'm having issues with is getting a div next to it, that scales to fit the remaining width.
Is there a simple approach I can use here?
...
I'm having a problem with a webpage.
I'm using the min-height property to place the footer at the bottom of the page (if content is not long enough) and after the content (if content is longer than the window). There are plenty of tutorials that describe this method and I too did it this way.
html, body { height: 100%; }
.container { ...
Is it possible to avoid having the white screen when a page loads? Particularly for the iframes i'm using on my page? it looks odd having a box of white on the screen while the parent contents are themed already.
Thanks in advance!! :)
...
I have a zend form comprised of 4 subforms.
1 of these subforms has 4 elements, and one of those elements is a zend_form_element_checkbox.
I have 4 different display groups (1 for each subform) - one is : 'billing address', one is 'credit card info' , 'notifications' and 'misc'
Assuming that 'notifications' is the part that has the chec...
Hi, could anyone please help me with a problem I have been having with a 100% - 350px layout for embedding vimeo video?
It seems like the right-margin property is getting ignored here, and the layout is overflowing to the right. I'm hoping this a simple mistake, but seems like I've tried everything. I'm running out of time.
Help would ...
When sending an HTML email can you link to an external style sheet or does the CSS need to be included in the email?
Also, if you can link to an external style sheet, which way is more efficient/is smarter to use: linking to the style sheet or including it in the HTML?
...
Hi StackOverflow,
I'm having some trouble with my main menu on my ASP.NET website. What I want is, when a user clicks on a link, it should change it's color to black and remain black until the user clicks on the other links.
In other words: I want to highlight the selected link.
So far I've got it working using some workaround JavaScr...
I have this code
*html #alertBox {
height:100px;
}
#modalContainer > #alertBox {
position:fixed;
}
is this supported by css, i found this code in some other site(I forgot the link)
...
I need a light css editor with certain functions. Already downloaded and tried a few apps but still no luck, none of them fit my requirements. Actually, there is one, CssEdit (or TextMate), but unfortunately i'm a windows user...
Already tried:
built-in NetBeans IDE css editor (btw nice editor, the one i'm using now for css)
IntelJ ID...