Questions tagged [absolute]

In CSS, the `absolute` 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; 
}
1194 questions
24
votes
4 answers

Absolute value in awk doesn't work?

I want to select line of a file where the absolute value of column 9 is less than 500. Column is sometimes positive, sometimes negative. awk -F'\t' '{ if ($9 < |500|) {print $0} }' > output.bam This doesn't work so far .. one round on internet told…
madkitty
  • 1,605
  • 6
  • 22
  • 37
23
votes
5 answers

absolute position to whole window

I have the following problem: I have a father-div, that's position is "relative". Inside this div I have 2 son-div's. The first son-div should be positioned relative to the father-div. But the second son-div should be positioned to the whole…
user2025815
  • 261
  • 1
  • 2
  • 5
23
votes
1 answer

CSS :after content below a select element causes click not to work

I have this (simplified) css for the select element to get rid of the browser-specific appearance .select{ display:inline-block; position:relative; } .select:after{ position:absolute; bottom:0;right:0; content:'\2193';…
B7th
  • 564
  • 1
  • 4
  • 17
23
votes
11 answers

Absolute DIV height 100%

I have been working on this for the past couple of hours, and searching the web and stackoverflow hasn't been much support. How do I make #gradient and #holes fill the entire page? I have used the Inspect Element feature in Safari, and when I…
woody993
  • 631
  • 1
  • 11
  • 25
22
votes
3 answers

absolute position affects width?

I am new to css. I am wondering why when I change the positioning of the div element to absolute, the width of the div element changes? Tried it out in Chrome v25.0.1364.172m and IE9, both have the same outcome. Simple example:
lee23
  • 379
  • 1
  • 2
  • 7
20
votes
3 answers

Alert says using deprecated HREF without absolute URL

Message alert in Facebook developer page that my site is currently using the following deprecated features: Social Plugins (Like Button, Like Box) without absolute URL's in their href parameter. This must be fixed before July 2013. I'm guessing…
CarloTex
  • 215
  • 2
  • 7
19
votes
4 answers

jQueryUI slider: absolutely positioned element & parent container height

I have an example on http://jsfiddle.net/SsYwH/ In case it don't work HTML:
Testing absolute
Even more testing absolute
A little test
Jens Törnell
  • 18,167
  • 36
  • 100
  • 168
19
votes
2 answers

Getting URL of executing JavaScript file (IE6-7 problem mostly)

Hey all, I've been trying to throw together a generic function that retrieves the absolute URL of an executing JavaScript file on a web page: http://gist.github.com/433486 Basically you get to call something like this: getScriptName(function(url) { …
19
votes
2 answers

Position:absolute element being hidden behind later elements

I've put together a jsfiddle to illustrate my problem here. Essentially, I've got an absolutely-positioned menu system above my main content, but the content seems to be floating in front of the menus. Hover over "Link 3" to see that it's just the…
user1684248
  • 193
  • 1
  • 1
  • 4
18
votes
3 answers

How can I position one element below another?

I want to put one element under another element. I am using position: absolute in CSS. .first{ width:70%; height:300px; position:absolute; border:1px solid red; } .second{ border:2px solid blue; width:40%; …
khalid J-A
  • 478
  • 1
  • 5
  • 19
18
votes
1 answer

Django, get_absolute_url method for file object

def get_absolute_url(self): return "/uploads/%i" % self.id It's not what I want but This is far as I can think of. I need a link for my files (like.../photo.jpg) I just learned how to get feeds from my django website. And I want this jpeg's…
Ghostino Doggio
  • 271
  • 1
  • 3
  • 11
15
votes
2 answers

Absolute Position Issue with :before pseudo element with IE 11< vs. all other browsers

Please note: Using a separate stylesheet or conditional comments to flag IE11 or less is not an option, so I need a solution that will work in the global CSS for all browsers. I'm using the "before" pseudo element on a heading element to insert a…
Cofey
  • 10,034
  • 13
  • 47
  • 70
15
votes
2 answers

Django Get Absolute URL

I want to get absolute url in templates. I can't do with url. It gives me a relative URL. I need to get this: http://domain.tld/article/post but Django gives me just /article/post I played with settings.py but it didn't work. (debug=false, allowed…
neuraminidase7
  • 466
  • 2
  • 7
  • 19
13
votes
4 answers

Get position of element by JavaScript

I've seen dozens of scripts that can catch the x and y position of an element/object within the page. But I am always having trouble with catching the x and y when the webpage is using margins at the body, or other elements, absolute/relative…
Johnny
  • 131
  • 1
  • 1
  • 3
12
votes
5 answers

React Native - What is the difference between StyleSheet.absoluteFill() and StyleSheet.absoluteFillObject()?

The documentation provided an example for StyleSheet.absoluteFillObject() whose behavior is also same while using with StyleSheet.absoluteFill(): const styles = StyleSheet.create({ wrapper: { ...StyleSheet.absoluteFillObject, top: 10, …
Purple Bytes
  • 489
  • 2
  • 6
  • 16
1
2
3
79 80