473,386 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Tag Pointers / Divs vs Tables (again)

Dougie Howser!

Anyone got any good tips or links to suitable guides/tutorials?

Coming from tables, I now realise the abomination that they were.

Though I do enjoy being able to do say:

<table>
<tr>
<td width=125>
Menu
</td>
<td width="*">
Rest of Page
</td>
</tr>
</table>
That "*" is the only thing that seems to be missing. Being able to use
up "the rest of the space".

Still.

Im trying to wrap my head around the correct usage of the various types
of tags to avoid using font and span tags for formatting. Such as, h1,
h2, h3, h4, h5, h6 etc instead of multiple uses of span or font.

If you have a blockquote you want to attribute to someone, ie, " -
courtesy of Mr XXX at XYZ Co Ltd", what do you do there? There's no
specific tag as far as I can tell. Is that an appropriate usage for
"<span>"? Or maybe that should be a "P" tag if I don't actually want the
attribution inline with the quote (perhaps if I wanted it on the next line).

My next problem is one of floats.

I can't remember what I have, but I basically have the basic premise of
a three column site where the menu on the left, and the other info on
the right are floats.

something like

<div container>
<div float left>
<div content container>
<div float right for more information>
</div>
</div>
</div>

Which means then when I introduce a HR or some other element, in the
content container, it sweeps behind that floating div.

I then keep finding myself wanting to do things like this:
BIG BOLD TEXT HERE FOR A HEADLINE |
Sample description of the item in question | Centered Image
blah blah blah |

BIG BOLD TEXT HERE FOR A HEADLINE |
Sample description of the item in question | Centered Image
blah blah blah |

BIG BOLD TEXT HERE FOR A HEADLINE |
Sample description of the item in question | Centered Image
blah blah blah |
I mean, that Centered Image, could be an image, could be a form element,
could be some other text. I like the fact that regardless of what's in
there, a Table will vertically and horizontally center the information.
It will also make sure everythings lined up, unlike this abomination:

<div style="width:100px; float:right;">Some floaty element here that I
dont want forcing down the second listitem</div>
<ul class="newscontainer">
<li style=" border-bottom:1px solid #931253;">
<div style="float:right; border:1px solid #f00;">X Marks<br>the
spot</div>
Something or Other Here
</li>
<li class="newsbody" style="clear:right; border-bottom:1px solid
#931253;">
<div style="float:right; border:1px solid #f00;">X Marks</div>
Something or Other Here
</li>
<li style=" border-bottom:1px solid #931253;">
<div style="float:right; border:1px solid #f00;">LARGER X HERE</div>
Something or Other Here
</li>
</ul>

Any thoughts? I keep looking around t'internet, but can't find anything
that gives me a practical guide to complete what I need. I mean, I
could go manually fudge all the heights, and of course, the problem with
using clear:right, is that the second listitem gets shifted because of
that overhanging div...

Cheers
Simon
Jul 19 '06 #1
1 1203
Simon Dean schreef:
Anyone got any good tips or links to suitable guides/tutorials?
Search in google for "3 column layout" and "holy grail"...
Good examples here: http://www.pmob.co.uk/temp/3colfixedtest_4.htm

Jul 20 '06 #2

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

Similar topics

2
by: Egon Pasztor | last post by:
Hi. I'm new at CSS, so maybe this is obvious, but I've looked around quite a bit looking for a solution. I'm playing with the vertical positioning of elements in a 2-column layout. The...
15
by: red | last post by:
How do I center two side by side divs ? I've been writing css pages for a while but there's one thing tha still eludes me. I can center a div with margin auto. I can place two divs side by side...
1
by: Siegfried Heintze | last post by:
I want to implement drag and drop for tables, divs, spans. The problem is that I don't know how wide or long my tables, divs and spans are going to be in advance so I cannot use absolute...
12
by: meltedown | last post by:
I would like the floating divs to float and then the header to come after them , on the left. That's what I thought clearing the floats was for, but in this example, the header is to the right of...
14
by: Daniel | last post by:
Hi i have a requirement for the following layout in my masterpage: 1 div for header 1 div for footer Between those divs i want a div for the left menu, then a div for the content in the...
6
by: =?Utf-8?B?Tkg=?= | last post by:
Hi, What do you recommend for defining the layout of an asp.net 2.0 page? Leaving masterpages and user controls aside for the moment is the use of tables or Divs the best approach? I have...
7
by: arupfrancis | last post by:
Hi, I am trying to create a colored box using background images. I am able to do it easily using tables but doing it in divs is proving to be an issue. Moreover IE and Mozilla also seems to be...
7
by: rcw1983 | last post by:
I'm trying to get two divs on the same line....the problem I have is when the browser window gets smaller, the second div is being pushed below the first div....I want them to stay on the same...
3
jhardman
by: jhardman | last post by:
I'm almost to the point of using tables to position my elements. That is how bad this is. So here's the rundown. I have an old page (created by someone else) that I was trying to update to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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...

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.