I just found a page of web developer interview questions, and I'm not sure what the answers are for two of them. For Q1, I pick answer e. For Q2, I pick answer b, but I'm not sure if there are better ways to do it.
Which markup structure is most semantic for a title within a document body, considering that the title may be horizontally...
Hi,
Is it possible to use a fixed width div and an expanding div? Something like:
<div style="float:left; width:200px">
</div>
<div style="float:left; width:100%"> // expand please
</div>
<div style="position:fixed; width:320px">
</div>
I'd like the middle div to just expand in width and take up whatever is left after position the ...
Hi there,
Backstory:
I've been building a back-end CMS/database for a client to manage his bar's ever changing drink menu, however the CMS/database will no be ready for use for a while, and thus I also need a temporary solution to help update the website's menu.
Situation:
The client prints the bar's menus daily from a formated Excel...
dear all..i have a problem.
at firebug show:
$("#menu ul.menu").lavaLamp is not a function at menu.js
the hover at menu not show.
this problem show after i put this:
<style type="text/css">
* { margin:0 auto;
padding:0;
}
body{
w...
My iPhone (4) renders 1.8em the same way it renders 1.2em while 0.9em is waaaay smaller.
Any idea what would cause this? The sizes work perfectly in all desktop browsers - FF, Chrome, IE, Safari. The iPhone makes my app looks weird because the sizes are not honored.
Help?
...
Hi,
Is there a way to instruct a div to fill 100% of the available page height, until it gets enough content to require a scrollbar?:
// browser height: 600px:
<div>
// empty, so just be 600px tall.
</div>
....
// when it gets content and gets taller than
// the page, don't need to auto-height itself
// anymore.
<div>
<ul>
...
Hi all,
I am using the following code(no my own code) to load image to a css element (called cell) and to display an activity indicator.
var cell = document.createElement('li');
cell.textContent = this.labelForIndex(index);
var indicator = new NKActivityIndicator();
indicator.init(10,100,20,"white");
indicator.show();
indicator.spin(...
On one of my web sites there is a text input box on the left for search.
http://wiki.guildwars2community.com/
However in chrome you cant select the input as if you right click>Inspect element it selects a div.
Whats strange is the links and buttons underneath it work fine.
Any ideas or is this a chrome bug? I have tried setting the z...
On this page, there seems to be a small problem... there's a sliver of white showing.
Here is the relevant HTML:
<table id="topbar">
<tr>
<td id="topbar_logo">
<a href="http://stackmobile.com/" style='padding: 0px;'>
<img src='images/logo.png'
style='width: 48px; height: 40px; border: 0px; margin: 0px;' />
</...
I want to pass variables in CSS. But the condition is that the CSS file is not my control. So, is there any way? If yes, please help me out. can i access my css file on fly by using python script?
...
I am using a form page having multiple steps in it i want to design it something like this
the top part i.e. Step1, step2 etc.
how to achieve this using CSS
...
I would like to do some simple layout math. I remember the syntax below worked in opera last time I tried it. Standard CSS lacks any calculation support as far as I know. So how can I achieve this with standard css(IE7 compatible)?
#myDiv {
width:100% - 260px;
}
Edit So here is some context:
I will try and draw my situation with so...
What is the difference between px and em?
...
i was looking forward to some designs as done here.
how is it possible for the background to remain static and the content to move over it??
...
We have a CSS file with some rules similar to the following:
.directory-result ul
{
margin-top: 20px;
width: 60em;
}
.about-text
{
margin-top: 1em;
margin-bottom: 1em;
}
Everything is working ok, but we're wondering specifically about the inconsistencies between the margin-top values. One is 20px and the other is 1em...
Why does iframe have a default height of some 100px when the html content inside has only 20px?
You can view an example here: http://www.tulumarka.com/galerija/28497/after-beach-party---02072010papaya/?pid=418319
Below the thumbnails there are two iframes that push that content below them but shouldn't do that cause they have no conten...
Hi all,
I'm having some issues with centering a bunch of floating divs. I've searched SO quite a bit (specifically here and here), but I seem to be missing something. I'll post my code and hopefully somebody here can see what the problem is...
What I'd like to accomplish is something along these lines
The behavior that I'm curren...
Hi folks,
I'm trying to build a simple heatmap for one of my sites, but it seems a lot trickier that I thought!
1) There are different themes for the site, 1 is aligned to the left, another one is aligned to the centre.
2) Screen sizes change throughout the users.
I need to track clicks on the site, but unfortunately event.PageX and ...
I'm new to HTML. When I started reading documentation about lists, I've noticed that everywhere an <ul>, <li> structure is used, even for creating very simple lists.
But for me it's most comfortable to use only <a> elements with CSS:
display: block;
/* and/or */
float: left;
So, why use <ul>, <li> instead of just <a>?
Thanks a lot....
I have a room div with some toy divs arranged on it, see
Toys are absolutly positioned and are drag-able with in the walls of the room . The room container div has a fixed height and height, so the room has horizontal as well as vertical scrolls. I use jquery event drag plug-in for setting up DnD. I managed to set up the toys drag only...