473,583 Members | 3,010 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

css positioning

with tables there is a clean and algorithmic way to organize things, but with
css which is, once you get it working, much cleaner, I have to tweak and patch
and hope and pray and curse before things are positioned the way I want them.

It *should* be easy to say: this goes on the left, this goes on the right,
this goes in the center, all on the same line, with a background image...but
I'm missing something.

I would very much like a clean algorithmic way to partition things off, and so
arrange my website, as I would have done when using tables to arrange things
was in style.

Thank you

BEGIN FLAMING RANT (Feel free to ignore, or laugh at...it's pg-13)

what the **** is going on with ******* css where the **** did who come up
with the whole ****** web standard anyway. oh wait, there ISN'T a standard
because every single friggen browser out there decides to render everything
just slightly different, even if you have the latest browser and conform
strictly to the friggen standards. margin-right oh, if you say put the
right margin on the right hand side of the screen i'll just place it on the
next ******* line, that's what you want right? come ON people!! gtk figured
this out long ago, gtk_expand, gtk_fill, and gtk_shrink: expand to take as
much space as possible, fill all the space you have with content vs padding,
shrink to take up only the space required. why the **** can't you do that
in html which is supposed to be so much more advanced? why the **** are we
using html for all this anyway? it's such a bass-ackwards, broken system.
what's wrong with the y-protocol or a derivative thereof in which programs
do not even know that they're operating over a network connection as far as
the gui is concerned? why do we keep trying to build hack upon hack upon
hack. i ******* hate the ****** web, it's a total software vietnam! hey,
let's take a bad idea, depend upon it, make it worse, depend on it more,
repeat, repeat, repeat, until every ****** coder out there is forced to deal
with this **** instead of doing worth-while things like building better
compilers, better languages, better filesystems, or anything else non-lame

END FLAMING RANT

--
Harrison Caudill BS | .^ www.hypersphere.org
Physics Graduate Computer Science Major | | Me*Me=1
Georgia Institute of Technology | v' I'm just a normal guy
Jul 24 '05 #1
1 2795
Charles Harrison Caudill <ku*****@myrna. cc.gatech.edu> wrote:

[CSS positioning]

CSS should be discussed in comp.infosystem s.www.authoring.stylesheets,
cross posted and follow up set.
with tables there is a clean and algorithmic way to organize things, but with
css which is, once you get it working, much cleaner, I have to tweak and patch
and hope and pray and curse before things are positioned the way I want them.

It *should* be easy to say: this goes on the left, this goes on the right,
this goes in the center, all on the same line, with a background image...but
I'm missing something.
CSS2 supports an good method to replace html tables, but few people know
about it because it's not supported by IE.
I would very much like a clean algorithmic way to partition things off, and so
arrange my website, as I would have done when using tables to arrange things
was in style.


There is no such thing, all other available CSS methods to create a
layout have lots of potential issues and are difficult to implement for
all but the most trivial layouts. CSS positioning is especially tricky
to use, many people relatively new to CSS latch on to absolute
positioning as a method to create a near pixel perfect layout. In doing
so they typically create something horrible that breaks when you wave a
feather at it.

Start with floats first, for creating a layout they are equally horrible
to use, with as least as many potential issues, but you are less likely
to create the typical horror show that results from using absolute
positioning.

CSS positioning can be used to create pretty good layouts, but using it
requires good CSS skills and an awareness of the many issues that can
result from it, a few absolute positioning do's and don't's:

a) Typically only position the layout boxes, *not* the elements in them
(let them flow).
b) Keep the layout simple, not to many boxes.
c) Scale the width and possibly height of the box if it contains text to
allow for user font size variations. To test use a Gecko browser to vary
the text size.
d) Beware of the overflow behaviour of non washable content (such as
images).
e) Note the wrap behaviour of content in abs positioned boxes, narrow
the viewport width to test, you may need to prevent wrapping from
occurring, if so, see (d).

Search the web for examples of CSS layouts if you are not particularly
skilled with CSS.

--
Spartanicus
Jul 24 '05 #2

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

Similar topics

9
32043
by: Bryan R. Meyer | last post by:
Hello Everyone, The problem of browser resizing has become an issue for me. While redesigning my webpage, I set the left and right margins to be auto so that my content would be centered. However, there are images that I used absolute positioning in order to place them in the appropriate location on my page. When I do a browser resize,...
4
2695
by: Jane Withnolastname | last post by:
I am trying to re-work an old site by replacing the html with css. On the main page, I have a logo image which I needed centred on the initial screen. I found the solution here: http://www.wpdfd.com/editorial/wpd0103.htm#toptip (the second example) The problem is, under the image is a large table. But using the above positioning, now the...
14
2465
by: Harlan Messinger | last post by:
What am I not understanding about the definition of { position: absolute; }? "The box's position (and possibly size) is specified with the 'left', 'right', 'top', and 'bottom' properties. These properties specify offsets with respect to the box's containing block." Please take a look at http://gavelcade.com/abspos.html and help me...
6
2672
by: rajek | last post by:
I posted a similar question yesterday, but didn't get an answer that resolved the issue. (Thanks to those who tried though.) The background: I've read in books and online that if you have one element with "relative" positioning, such as a <div>, it creates a "positioning context" for element within it. E.g., if you have a <p> inside your...
11
2628
by: NS | last post by:
I am relativly new to css positioning and have a question regarding the display of a DHTML pop-up Here is the basic HTML I am using: <html> <head> <script language="JavaScript"> <!--
2
2482
by: Rob R. Ainscough | last post by:
I'm slowly (very slowly) working my way thru the bizarre and sadistic world of control positioning in MultiViews (ASP 2.0). I came across this to help me explain (or attempt to anyway) why my web page controls were all over the place. "Ironically, absolute positioning is relative. Yes, you read that right. An absolutely positioned element...
4
2099
by: Alan Silver | last post by:
Hello, Having been a light reader of this ng for a few months now (after several years absence), I have noticed that absolute positioning seems to be considered a Very Bad Thing around here. Generally, when someone posts a question about a design that uses it, they are told not to. Now, in my ignorance, I don't see what's wrong with it,...
9
3379
by: Bill Norton | last post by:
I've been experimenting with floats, positioning and offsets (top, left, etc.) to see what happens when you mix the properties together. All this may be old news to most of you, but it was extremely helpful to me. The results are summarized in this chart. In all these tests I was using a single child element inside a containing block. (I hope...
6
2907
by: Mark | last post by:
hi, i'm trying to position something in the top right corner of a container, but i can't seem to figure out how to get it working. here's the html <div class='thumb'><a href='image.jpg'><img src='photos/thumbs/ bigsmile.jpg'></a><a class='del' href='?p=gallery&del=2'>x</a></div> where 'thumb' is my container, and 'del' should be aligned...
0
7826
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
8182
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. ...
1
7935
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
6579
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...
1
5701
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3818
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...
0
3843
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2333
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1157
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.