Hi again,
Ok so I've got two new problems with this layout http://www.paulwatt.info/test/turn/
1) When I increase the width of the Maincontent Div from 73% to 74% to line
it up with the right hand side of the page, the whole div drops to below the
level of the leftcell div. put it back to 73% and it goes back to its
correct posistion.
2) It looks fine in IE but a absolute dogs dinner in FF. whys this?
Thanks once again for all your help! This would be soooooo easy to do with
the good old <table> tag!
Paul http://www.paulwatt.info 53 2833
And lo, Paul Watt didst speak in
alt.html,alt. http://www.webmaster,comp.infosystem...g.stylesheets: Hi again, Ok so I've got two new problems with this layout http://www.paulwatt.info/test/turn/
1) When I increase the width of the Maincontent Div from 73% to 74% to line it up with the right hand side of the page, the whole div drops to below the level of the leftcell div. put it back to 73% and it goes back to its correct posistion.
2) It looks fine in IE but a absolute dogs dinner in FF. whys this?
Thanks once again for all your help! This would be soooooo easy to do with the good old <table> tag!
Paul, you are taking the table-layout mode of thought and trying to force
it upon CSS and expecting it to comply. These blocks are still "cells" to
you, which is likely why you feel the need to over-specify properties on
them. Relax, and remember that the more CSS you have, the harder it is to
debug. Keep things simple, the default styles on the block elements you
are using already provide for most of what you are trying to do.
First, remove the width property from the .maincontent rule entirely.
<div>'s expand to fit all available horizontal space by default, so the
margin-left property is the only width-limiting style you require here.
To change how far the .maincontent div sits apart from the menu, just
change the value of the margin-left property. That's it.
Grey
--
The technical axiom that nothing is impossible sinisterly implies the
pitfall corollary that nothing is ridiculous.
- http://www.greywyvern.com/orca#search - Orca Search: Full-featured
spider and site-search engine
Grey,
Am I correct in inferring from this thread that tables are being
superceded by divs for layout. Could you point me to some website(s)
that discuss this evolution?
Many thanks,
Richard
Paul Watt wrote: Hi again, Ok so I've got two new problems with this layout
Why don't you go find yourself a nice CSS book? Need I mention that you
should read it, too? ;)
While you're at it, get a few well-tested, ready-made templates to
study, and learn from them. You can start here:
<URL:http://css-discuss.incutio .com/>
And make use of google groups for the 1 thing it is good at: a
searchable archive of usenet posts. You aren't doing anything that
hasn't been done countless times before, you know.
Learn to help yourself first. Come here when you get stuck, but don't
come here first, eh? This isn't a help desk, you know.
--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Richard wrote: Grey,
Am I correct in inferring from this thread that tables are being superceded by divs for layout. Could you point me to some website(s) that discuss this evolution?
I don't mean to sound rude, but you are WAY behind the times on this.
Study up on CSS - that will give you at least a basis to start from. The
tutorial at w3schools is a decent start.
Hi Karl, http://w3.org
Good point. I found a good "con" article there. I'll look at the site
further.
Thanks for you guidance. I guess I could have thought of that myself,
but I wanted to see the best places to look.
Regards,
Richard
Hi Nik, Not so much replaced as divs as replaced by semantic markup with
presentation controlled with CSS.
At first glance, it sounds like a good idea.
A good place to start:
http://www.hotdesign.com/seybold/
That was a good place to start! I get the idea now and follow their
guidelines to see how it turns out on stuff I'm working on now.
Others:
Thanks for the list. I'll take a look at them from time to time.
Regards,
Richard
Tony wrote: Richard wrote:
Grey,
Am I correct in inferring from this thread that tables are being superceded by divs for layout. Could you point me to some website(s) that discuss this evolution?
I don't mean to sound rude, but you are WAY behind the times on this.
Study up on CSS - that will give you at least a basis to start from. The tutorial at w3schools is a decent start.
I think you and many others are confusing content and markup.
If the data to be displayed is tabular, I'd choose tables over div,
simply coz' I want the page to be legible unstyled as well.
I never read the table tag is being deprecated or obsolete. But then
again, there's so many things I haven't read yet.
I'd advise to start a page design by properly choosing the right html
tags for the page elements. Then use CSS to make a nice(r) layout.
Add divs where needed, but at all cost avoid the omnipresent div soup.
Some folks just replaced all their former tag soup for a different soup
flavour.
If your page looks like faeces when viewed unstyled, there's a good
chance you have started the wrong way. And I am willing to admit I
created enough examples of 'the wrong way' myself.
Did I grasp correctly this is the point Richard was trying to make?
Sh. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: F. GEIGER |
last post by:
When I start a py2exe-ed application I get the error
'ascii' codec can't encode character u'\xe9' in position 10: ordinal not in
range(128)
This is how I run py2exe:
setup.py py2exe -O1 --packages encodings
This is how the .po-file looks like:
|
by: glutinous |
last post by:
I've looked at manuals and experimented until my brain's oozing out of
my ears, and I still can't figure out what I anticipate will prove to
be fairly basic css layout knowledge.
I'd be amazed if this was the first (or even if only the 100th) time
someone has asked about this sort of situation. So I apologise, not
least for the awkwardness of my attempt below to illustrate my
ignorance.
I could produce a table such as this...
|
by: John Bailo |
last post by:
Doing some c# client programming in VS.net
One thing I miss is that in the code view I could set the focus to a
form object in the left hand drop down ( like a TreeView control ) and
then the right hand drop down would expose only the properties and
events associated with that control.
I don't see that in VS.NET
|
by: ibm_97 |
last post by:
DB2 8.2
I try to add a column into a table. I think the procedure inside DB2
is:
1. Create a temporary table which has the old table stucture and data.
2. Drop the original table
3. Create the new table with the added column
4. Insert data back into the new table from that temporary table.
|
by: Parahat Melayev |
last post by:
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
int main()
{
unsigned char *c;
c = malloc(sizeof(unsigned char));
printf("size of unsigned char: %d\n", sizeof(unsigned char));
printf("size of c: %d\n", sizeof(c));
| |
by: [Yosi] |
last post by:
Hi,
I create a thread which load DLL and have DLL function call,this Dll
function takes a lot of time.
My Question is , if I request Thread.Susspend(), and the thread is inside
the Dll function (Dll function not finished yet, and thread function wait for
this function (DLL)call to compleate), what will happen ? is this will
susspend also the Dll function execution ? or will delay the susspend untill
this function returned ?
Thx
|
by: Mark R. Dawson |
last post by:
I have never used a goto statement in my code, one of the first things I was
told in my software classes a number of years ago was "goto statements are
evil and lead to spagetti code - do not use them".
I absorbed this mantra and tell this to other people and I fully believe in
it. However, I was talking to someone recently and he was saying how much he
loved goto statements and how useful they were and that Microsoft had to
leave them...
|
by: kmounkhaty |
last post by:
Hi Guru,
My profiler trace does not display SP:CACHEMISS event, even thought I
drop store proc, clear both data cache and buffer cache but still does
not work.
Every thing works fine like: cachehit,
cacheinsert,cacheremove,executecontexthit etc...
Is there any special option that I need to turn it on?
|
by: Useful Info |
last post by:
Like on 9/11, the Federal Government apparently WANTED people to die
at the hands of Cho at VA Tech, because they told campus police not to
pursue Cho after the double homicide occurred.
Story via
http://Muvy.org
|
by: manikandan |
last post by:
dont miss it just open
dont miss it just open
dont miss it just open
#############################
|
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |