div

html - troubles with divs

It's me again with divs :(. I can't understand this... There is parent-block: #content { position: relative; width: 92%; margin: 0 auto; height: 100%; min-height: 500px; border: 1px solid red; } And I need in 2 blocks in it: #news { position: relative; float: left; min-height: 400px; width: 290px; height: 100%; } #text { position: re...

How do i make a border with css around some elements without specifing an absolute width?

i am new to css and would like to draw a border around this: <form name="SomeForm" method="post" action="SomeAction"> <fieldset> <legend>Details</legend> <div class="menu"> <p><label for="UserName">Username</label><input name="UserName" id="UserName" type="text" value="#data[1].username#"></p> <p><label for="Passwo...

Inner div to scroll if outer div is too small?

Tentatively answered Thanks dcneiner - new answers are appreciated. Hi, I'm trying to make a sidebar which on a website which will have a "panel" in it containing contact info. The problem is that on smaller screens, the text overflows the background. Here is the CSS, where #navigation is the outer div and the inner div is called .in...

Center float boxes horizontally

I want to display some floating boxes (divs containing thumbnails) and the number of thumbnails depends on the current page width. For example: <div class="container"> <div class="box1" style="float:left;width:120px;height:120px;margin-right:10px;">Thumbnail image here</div> <div class="box2" style="float:left;width:120px;height:120...

CSS problem, creating tabs

I have a CSS problem that I'm not able to figure out. I'm not even sure it is possible. What I want is the following: I have three buttons/tabs like this http://sv.tinypic.com/r/21cf85t/6 and when you click one tab a different div should show for each tab like this http://sv.tinypic.com/r/21l5y85/6 or http://sv.tinypic.com/r/2dbrv5u/6. ...

Manipulating a <div>'s position through JavaScript

How do I set the top, left, width and height of a <div>? I already made sure it floats by inserting the following CSS code: div.grid_tooltip { position: absolute; left: 0px; top: 0px; } ...

jQuery scroll div with scrollTop

I'm trying to scroll a div up or down when hovering over the respective arrows. I also want to be able to jump down the div when the buttons are clicked (think clicking the windows scroll arrows rather than dragging the scroll bar). The scrolling works but the jumping doesn't. scrollTop() keeps retuning 0. Here's the code: function st...

adjusting div position

How can I adjust div with exact center of screen at any resolution with position:absolute.?? ...

how to make three inside divs the same height?

I have a container div#content, which contains three divs inside. Now, how could I make sure that three divs inside have the same height? Of course, I hope each div's height could be expanded according to its content. For example: here is what I tried <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <title><...

iframe don't reload at page refresh

is there any way to div or iframe don't reload at page refresh ...

problem with form elements when div is faded in from being display : none (IE problem)

hi! on a webpage I've been working on I have a problem which I seem unable to solve. I have a div with display set to none which I fade in. it contains form-element which are not being shown the way they are supposed to when wieved in IE. you can look at it at http://www.orrmyr.se Thanks for you help Martin ...

How do I create series of div and make them accessible for jquery to modify them after a while?

I want to create some DIV from javascript. I don't know how many I will need to create, but I will need to change the back-color of it after a while. I'm using jQuery in my project. So if it's easier the solution can use jQuery. ...

how to specify to only apply jquery effect parameters based on div?

Ok here is what I am trying to do. I have a few effects I want to apply to several different div containers. Lets say I have a slide effect and a fadeTo effect. Rather then specifying what the div class/id is in the JS code, I would prefer to just be able to apply the effect by just giving the div a custom tag or an additional id/class....

prototype ajax updater div with different buttons

hello! i'm learning it, but i cant find what's wrong in this! i want the div2 to get data from the form in div1, called formulario. i would like to know which item is selected and which button was clicked. main html file: <script src="utils/Scripts/prototype.js" type="text/javascript"></script> <script type="text/javascript"> function...

Making table with resizable columns and selectable rows with jQuery UI

NOTE: My original question was whether I should use <div>s or <table>s for this task. I have found an answer myself: <div>s are more than twice as slower on Firefox and Chrome if you have ~2000 rows. So you must use <table>s for this. I decided to reedit my question to show how to do it (table with resizable columns and selectable rows u...

Creating a contact form using divs with 4 extra divs for "Corners"?

Hi there, i have tried to create a contact form (a standard form, square in nature but with rounded corners)... I can't use the CSS3 specs so i have an image for each corner.. I have set the images on the background-image and no repeat but it seems if the div is empty then it doesn't display, is there a hack - although prefer an altern...

how to size a div's height to its container height, using CSS ?

How to size a div's height to its container height, using CSS ? <div class='container'><br> &nbsp;&nbsp;<div style='display: block; height: 500px'>left</div><br> &nbsp;&nbsp;<div id='to-be-sized' >right</div><br> </div> ...

How can I append content to the bottom of a fixed-height div and have it overflow-y: scroll?

The question explains it pretty fully, but here's some more detail: I have a div with a fixed height. Content is dynamically loaded via Ajax and appended to the div. Added content is always positioned at the bottom of the div. 2 pieces of content (no scrolling yet) -------------------------div-- | | | ...

jquery how to only allow effect on assigned div, not children

I have applied an mouseenter effect to a div. When you enter the div, it then animates another div. The problem is, the mouseenter effect applies to the children div as well. How do I apply the effect to just the parent div, but animate the children div? JS: $(document).ready(function() { $('#slideleft').mouseenter(function() { v...

How do you stretch an image to fill a <div> while keeping the image's aspect-ratio?

I need to make this image stretch to the maximum size possible without overflowing it's <div> or skewing the image. I can't predict the aspect-ratio of the image, so there's no way to know whether to use: <img src="url" style="width: 100%;"> vs <img src="url" style="height: 100%;"> I can't use both (i.e. style="width: 100%; height: 1...