Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Old 05-17-2012, 06:32 PM In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Ultra Talker

Posts: 267
Name: Patric
Trades: 0
Hello there, so I'm having a bit of trouble in my mobile version of the site I'm developing. I need to have it so that the sidebar on this site goes to the bottom of the page automatically, instead of having it default to the top.

If you go to this site, and shrink your browser as narrow as it can be (or just view the site in a mobile device, you'll see what I mean for the "additional information" part.

I've tried to do this with absolute positioning, but it's tricky because some pages have really long content so that's not gunna work.

http://www.barr-nunn.com/careers/ind...national-solo/

Any help would be GREATLY appreciated.

Thanks
Reckoner is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-17-2012, 06:38 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Physicsguy's Avatar
404 - Title not found

Posts: 1,060
Name: Scott Kaye
Location: Ontario
Trades: 0
To move it to the bottom of the page, put a position:absolute; and bottom:0; on the div. Use Javascript to detect when the user's browser gets below a certain threshold, and when it does, apply this CSS:

Code:
position:absolute;
bottom:0;
left:0;
Which will 'stick' it to the bottom. Unfortunately, it won't shove other divs out of the way, so you might get some overlap if you aren't careful.

I have zero experience working with mobile websites, but I hope this helps!
__________________

Please login or register to view this content. Registration is FREE
Physicsguy is offline
Reply With Quote
View Public Profile Visit Physicsguy's homepage!
 
Old 05-17-2012, 07:06 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Ultra Talker

Posts: 267
Name: Patric
Trades: 0
hmm tried that, but when I do it, it just sticks the div in the middle of the page vertically.

hmm.
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 05-17-2012, 07:24 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Physicsguy's Avatar
404 - Title not found

Posts: 1,060
Name: Scott Kaye
Location: Ontario
Trades: 0
Weird. I usually use that CSS to align my footers. Do you have any other attributes on the div?
__________________

Please login or register to view this content. Registration is FREE
Physicsguy is offline
Reply With Quote
View Public Profile Visit Physicsguy's homepage!
 
Old 05-17-2012, 10:43 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Ultra Talker

Posts: 267
Name: Patric
Trades: 0
hmm, not that I am aware of. The way that it works though, is that there are different attributes for divs relating to a browser window. When you put a window size smaller, the css code takes precident depending on what size it is.
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 05-18-2012, 05:52 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Ultra Talker

Posts: 267
Name: Patric
Trades: 0
Still stumped by this
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 05-19-2012, 11:24 AM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
chrishirst's Avatar
Defies a Status

Posts: 43,966
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
That is what media queries are designed for.


http://www.css3.info/preview/media-queries/
http://css-tricks.com/css-media-queries/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-19-2012, 01:43 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Ultra Talker

Posts: 267
Name: Patric
Trades: 0
yeah, I've got media queries going, which is how that site looks somewhat legit in a mobile device, but this particular part is the only thing that's driving me nutty. For whatever reason that a p positioning doesn't stick it at the bottom of the page and only half way down for whatever reason.... That's what I am trying to figure out right now.

I personally think mobile sites are kind of lame, but the client wants it for this trucking site I made.
Reckoner is offline
Reply With Quote
View Public Profile
 
Old 05-22-2012, 06:12 PM Re: In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
Ultra Talker

Posts: 267
Name: Patric
Trades: 0
thanks for the help everyone though
Reckoner is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to In Mobile version, need to have it so sidebar goes at bottom of page. lil help? (
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.59878 seconds with 11 queries