Questions tagged [absolute]

In CSS, the `absolute` value of the `position` property will cause an element to be positioned relative to its first non-static parent element.

Description

In CSS, the absolute value of the property will cause an element to be positioned relative to its first non-static parent element.

Example

#example { 
    position: absolute; 
    top: 20px; left: 20px; 
}
1341 questions
-2
votes
2 answers

I cant get my absolute position to find the relate positioned parent

I placed my absolute positioned element inside a div with a relative position, but it won't seem to recognize it as parent. #picture { position: relative; top: 55px; width: 100%; height: 100%; background-image:…
-2
votes
2 answers

Make absolute positioned div take up full width of screen

I have an absolute positioned div and I set it to have the full width of the screen with 100vw but the problem is that it starts where its parent starts and not at the left side of the viewport. How can I get the element to start from left to…
opportunityr
  • 173
  • 1
  • 3
  • 15
-2
votes
1 answer

CSS Height 100% without position absolute

Im displaying 3 div boxes in one row, but i want them to have a height on 100%. When im using position absolute and height 100%. The Box gets then to 100%, but they stack on each other. But i want them next to each other.
InvolveX
  • 23
  • 2
  • 8
-2
votes
2 answers

I'm doing something wrong with position:absolute

I am trying to set absolute position for 20 div or so but they are all showing the ones above the others ! HTML :
-2
votes
2 answers

Vertically align absolute positioned

inside image

How can I vertically align a absolutely positioned p element inside an image?

text with multiple lines here

Since I don't know it's height. EDIT My image can't be a…
Pedro Estevão
  • 982
  • 1
  • 13
  • 41
-2
votes
1 answer

Stop vertical scroll

I need to prevent a div from scrolling vertically, but allow it to scroll horizontally... basically add "vertical position:fixed" and "horizontal position:absolute" I would prefer to do it with CSS or JavaScript... This is the div i need to fix…
André Mata
  • 383
  • 1
  • 5
  • 15
-2
votes
1 answer

Triangular images in a shape of a diamond

I'm pretty new at this, and I am having some issues with positioning some images the way I want it. This is what I want: a:link: a:visited: a:hover .thumbnail { border: 0 none; box-shadow: none; } /* Element width position…
-2
votes
1 answer

Centering The Page

I am having trouble trying to center everything on the page. I know I have positioned certain items on the page down from top and in from left, is there any possible way to still center with these settings on. If i take top and left options off the…
-2
votes
2 answers

Code for calculation of absolute error

I am trying to write a program whereby the user can enter two values, and the program will calculate the absolute error between the values. A sample input would be: 87.03 87 With the approximate value read in first and the correct value second.…
PythonNoob
  • 1
  • 1
  • 1
-2
votes
2 answers

'%' instead of 'px' remove the 'float' effect

Scenario: We have an 'absolute' div wrapping the float:left elements. Using % instead of px is making float:left having no effect in this scenario. JSFiddle Check: div.main_button_box
Slake
  • 2,080
  • 3
  • 25
  • 32
-2
votes
5 answers

Relative-absolute 'hack' - the consequences

A fairly common technique to achieve page layouts is to wrap absolutely positioned divs inside a relatively positioned one in order to make the absolute divs "relatively absolute. No issues thus far. However, as I have just discovered, this causes…
DroidOS
  • 8,530
  • 16
  • 99
  • 171
-2
votes
1 answer

Change a div tag from fixed to absolute and back?

In the Facebook News Feed, the side bar (containing ads, etc.) isn't fixed all the time. How do you do this? You could do
But how could you tell it to change back and forth according to your wish?
-2
votes
1 answer

Can't select text in Google Chrome neither in FF but it works in IE 10

I'm currently developing a website but I'm facing a little problem. The problem is that on Google Chrome, Firefox and Safari, I can't select text neither click on links in the middle part of the page. But in IE 10 it is working I can select text or…
ggobbe
  • 171
  • 1
  • 9
-3
votes
1 answer

How to make Sticky Footer with absolute content?

I have the this code: header, footer { text-align: center; background-color: orange; padding: 18px; } body { margin: 0 auto; max-width: 1024px; } section { position: absolute; } footer { }
header…
-3
votes
3 answers

CSS : How to add an absolute div to a scrollable background?

I would like to add a div to a scrollable background, you may find the script I have for now here. I have a problem because when I add a box, it's being drawn to the window canvas, but I would actually like to draw it to the background #wrapper, and…
Karen Chan
  • 164
  • 1
  • 1
  • 16
1 2 3
89
90