473,568 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

overflow part of content to the left side?

Dear all

I got the following HTML:
<div id="div1" style="width: 100%; overflow: hidden;">
<table>...</table>
</div>

The table element is controlled by javascript and grows by width during
user interaction. I wonder if it is possible to set CSS so that when the
table grows wider than the containing div, the left side flows out of
the containing <divrather than the right side.

Is it possible? Or must it be done with javascript?

I made two picture to show what I mean. But even if the two pictures
together is still less than 8KB, probably this group in general prefer
not to accept attachments, thus here I ask should I post attached pictures?
Jun 27 '08 #1
3 12740
On 2008-06-05, Zhang Weiwu <zh********@rea lss.comwrote:
Dear all

I got the following HTML:
<div id="div1" style="width: 100%; overflow: hidden;">
<table>...</table>
</div>

The table element is controlled by javascript and grows by width during
user interaction. I wonder if it is possible to set CSS so that when the
table grows wider than the containing div, the left side flows out of
the containing <divrather than the right side.
Yes it's possible. direction: rtl on the table should do it (but that
doesn't work properly in many browsers). Better make the table float:
right.

You probably don't need width: 100% on the containing div.

[...]
I made two picture to show what I mean. But even if the two pictures
together is still less than 8KB, probably this group in general prefer
not to accept attachments, thus here I ask should I post attached pictures?
Post urls, never attach.
Jun 27 '08 #2
Zhang Weiwu wrote:
Dear all

I got the following HTML:
<div id="div1" style="width: 100%; overflow: hidden;"<table> ...</table>
</div>

The table element is controlled by javascript and grows by width during
user interaction. I wonder if it is possible to set CSS so that when the
table grows wider than the containing div, the left side flows out of the
containing <divrather than the right side.

Is it possible? Or must it be done with javascript?

I made two picture to show what I mean. But even if the two pictures
together is still less than 8KB, probably this group in general prefer not
to accept attachments, thus here I ask should I post attached pictures?
Even if the group in general did not want attachments, many servers will
strip them from text groups. Text groups. Text. Simple.
--
Blinky
Killing all posts from Google Groups
The Usenet Improvement Project -- http://improve-usenet.org
Found 5/08: a free GG-blocking news *feed* -- http://usenet4all.se

Jun 27 '08 #3
Ben C wrote:
On 2008-06-05, Zhang Weiwu <zh********@rea lss.comwrote:
>Dear all

I got the following HTML:
<div id="div1" style="width: 100%; overflow: hidden;">
<table>...</table>
</div>

The table element is controlled by javascript and grows by width during
user interaction. I wonder if it is possible to set CSS so that when the
table grows wider than the containing div, the left side flows out of
the containing <divrather than the right side.

Yes it's possible. direction: rtl on the table should do it (but that
doesn't work properly in many browsers). Better make the table float:
right.
Thanks. A float: right set it right on the right.
You probably don't need width: 100% on the containing div.
Oh I need it because the initial table width was only 50% of the
viewport, it grows later. But the original table width sets the
containing <divwidth.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
3252
by: Jim Cochrane | last post by:
I just google-searched this group and could not find any references to this. I'm trying to figure out how to specify a three-part header with html. For example, left part center part right part For old troffists, this is what the .tl construct does. But how would it be done in html? I tried <div...
7
5410
by: Tintax | last post by:
I'm trying to get a child DIV tag to overlap the border of it's parent DIV tag in order to create an effect as follows: +----------------------------------------------------------+ | | +--------------------------------------------------------------+ | Child DIV Tag ...
6
19389
by: Kai Grossjohann | last post by:
I have a frame which is supposed to contain a list of links. The clickable area of each link comprises a picture followed by some text. I want the text to be cut at the right hand side when the user resizes the frame to be "too narrow". Right now, the source for that frame looks like this: <table border="1" width="100%"> <tr...
1
3043
by: books1999 | last post by:
Hi there, I have a problem with this css/div and i cannot work it out. I would like either container to be able to push the background box to grow but in Firefox it overflows. Can someone find a solution to the problem contained in the code. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
8
2025
by: Geoff Cox | last post by:
Hello, When using Internet Explorer, on networked PCs in a college, to view a page of mine with Javascript code in it the "stack overflow" error message appears. When I access the same file from my home PC no such message. Is it possible for this to be caused by any IE setting?
4
12514
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0' cellpadding='0' cellspacing='0' style='border-collapse:collapse; width:100%; height:100%;'> <tr><td colspan='2' style='height:3em; border-bottom:1px solid
3
10857
by: Justin England | last post by:
Background: I am working for a client putting a textbook online. The layout of the textbook is straight forward and is easy enough to style with <h?>, <p>, <uland <oltags. The text book also contains small images of a key that represent a key point within the text. In the printed book, these keys are positioned to the left of the text...
4
2610
bugboy
by: bugboy | last post by:
Hi! I have multiple floating boxes inside a main box that has a fixed dimension. The floating boxes may vary in number and i want them to stay lined up along the top of the main box with a horizontal scrollbar to see those that are rendered outside the main box.. but since they are floated next to each other they wrap and i get a vertical...
0
1460
by: Laphan | last post by:
Many thanks guys "Michael Fesser" <netizen@gmx.dewrote in message news:v1thv3le7gnrrg7ljfk9051acajb48mb6n@4ax.com... ..oO(Laphan) Property, not command.
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7660
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6275
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3651
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1207
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.