GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   css: aligning text on bottom of div id box (https://gfy.com/showthread.php?t=844841)

nico-t 07-31-2008 08:12 AM

css: aligning text on bottom of div id box
 
i wonder why this is so hard to do... Im having a text in a div id, i have the text floating to the right with a div class assigned to it, and now i want it aligned on the bottom of the div id box. Someone got any suggestions?

vertical-align: bottom, baseline or text-bottom all don't work.

Overscore 07-31-2008 08:13 AM

vertical-align's a PITA in some instance. Check out this page for what will possibly explain why you're seeing what you're seeing and how to get the result you want.

http://phrogz.net/CSS/vertical-align/index.html

Robbie 07-31-2008 08:18 AM

Bro, css is turning out to be the biggest cluster fuck of all times. I changed all my shit over to pure css a few months ago. Then spent a tremendous amount of man hours trying to get it to work correctly in all browsers. Then...when I finally got it (three colum layout is the hardest of them all) I realized that the columns made in css DON'T resize when the browser window does! So if someone had the window not full screen then parts of the fucking content was overlapping itself.

After researching, reading, consulting, experimenting, and basically wasting a huge part of my life...I went back to a table setup using css for styles. But with the tables still intact.

Guess what? The site looks like it should in every browser and at every screen resolution, etc.

My thought is that until they come up with a single standard for browsers, markup language (there is a new html coming), and css...nothing is ever gonna work "right"

nico-t 07-31-2008 10:00 AM

yea these kinda small things can be such a pain in the ass...
Anyway, found some new shit i didnt know about, the 'bottom: ...', 'right: ..' , etc. so called 'positioning properties': http://www.w3schools.com/Css/css_positioning.asp

So i did this inside another div id (and inside another div class), to position a link in the bottom right:

.commentslink a {
position: absolute;
bottom: 18px;
right: 18px;
}

and its working perfect :)


All times are GMT -7. The time now is 10:35 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123