Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old October 28th, 2009, 06:52 PM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
Displaying nested div outside of main div

Hey guys

I have a main page div, which is 1000px across. This is the main div which basically everything else is nested within. It needs to be 1000px width so there is no scroll bar for the 1024 users.

This time, in my design I have some background-images which need to be outside of my 1000px div. There should be no scroll bar still for the 1024 users as its just some extra visuals for those who uses higher resolution than 1024.

I can't do this as a background image because there is a left and right side to this which should not move.
I have attached a JPG to this post. That is the top of the page. The left and right edges should tile until the end of the screen. You can see this picture is 1200px across so an extra 100px on each side.

So that extra 100px on each side should not cause a scrollbar for those with 1024px resolutions... But as the screen expands it is there.

Been trying alot of things but most of the time it isn't cross-browser compatible.

Cheers guys,
Richie
Attached Images
File Type: jpg example.jpg (14.9 KB, 9 views)
__________________
- Richie

Reply With Quote
  #2  
Old October 28th, 2009, 06:53 PM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
additional info:

I forgot to mention I have something that displays it correctly but the scroll bar appears to go right... surprisingly it won't scroll left though when I close the screen to 1000px (which is good but it does go right alot).

Within my main page div of 1000px, I have 2 more divs, and this is their CSS:

#testa { background: url(background_images/banner_left.jpg) no-repeat left;
position: relative; display: block; z-index: 1; top: 50px; left: -100px; width: 274px; height: 200px; margin-bottom: -200px; }

#testb {background: url(background_images/banner_right.gif) no-repeat right;
position: relative; display: block; z-index: 1; top: 50px; left: 1000px; width: 100px; height: 200px; margin-bottom: -200px; }

Surprisingly and a good laugh - This works in IE5 with no horizontal scrollbar unless its smaller than 1000px wide! Wow haha...

Once again - any and all help will be so great.

Reply With Quote
  #3  
Old October 28th, 2009, 10:03 PM
IAmALlama IAmALlama is offline
Me
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 1,937 IAmALlama User rank is Private First Class (20 - 50 Reputation Level)IAmALlama User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Week 5 Days 1 h 54 m 18 sec
Reputation Power: 4
you could try to set the overflow-x of the body to hidden.

Reply With Quote
  #4  
Old October 28th, 2009, 10:27 PM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
Hey mate

Yeh I originally did that... Works for all the modern browsers... but then the issue is that when they make the browser smaller than the parent div (1000px) it doesn't have a scrollbar

Reply With Quote
  #5  
Old October 29th, 2009, 12:40 AM
wilorichie wilorichie is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Brisbane
Posts: 324 wilorichie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 Days 15 h 29 m 24 sec
Reputation Power: 3
okay I dont know why I didn't do this originally but I have a ... messy fix...

For those that are interested (I will change this as soon as someone has a better method).

<body><div id="page_overflow">

</div></body>


So I know this isn't the best way for more than 1 reason but it does at least get it to work on a few browsers.

#page_overflow { display: block; min-width: 1000px; overflow-x: hidden; }

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Displaying nested div outside of main div


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek