473,385 Members | 1,486 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,385 software developers and data experts.

Placing Content at Top of Div Under Nav

I am having a great deal of difficulty in placing text within a div id
= content at the top of the div, directly below the div nav.

When you visit the site, http://www.tiredofmyproperty.com/ERCC/index.php,
you will notice the text in the div content right in the middle. I
would like to place it directly under the div id = nav section, but it
puts it in the middle.

My CSS is as follows for div content:
#content
{
padding:0;
margin-top:auto;
}

I can't figure it out. I have to be doing something wrong and I'm
sure it's something small.

Any help would be greatly appreciated.

Thanks.

Peter

Feb 17 '07 #1
1 1968
pm****@yahoo.com wrote:
I am having a great deal of difficulty in placing text within a div id
= content at the top of the div, directly below the div nav.

When you visit the site, http://www.tiredofmyproperty.com/ERCC/index.php,
Without looking deep, I'm going to say that you need to fix the errors
first, before trying to get some padding to work.

<http://validator.w3.org/check?uri=http%3A%2F%2Fwww.tiredofmyproperty.com%2 FERCC%2Findex.php&charset=%28detect+automatically% 29&doctype=Inline&verbose=1>

2. This is a new document? Doctype should be Strict, as you aren't
Transitioning from anything. I would also recommend you use HTML 4.01
Strict, rather than XHTML.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

Then revalidate.

3. You have multiple <bodyand </htmltags.

4. You are using fixed-size fonts, which means all those IE6 users with
vision problems won't be able to resize if they need to. See:
http://k75s.home.att.net/fontsize.html
and also note the notes on Verdana. Assign font sizes in percentage
units (100 of them), and set sizing for divs and such with em units.
Build a flexible page.
http://allmyfaqs.net/faq.pl?AnySizeDesign

5. Centered, and justified, text is hard for the eye to follow. Remove
the text-align: center from body { }, and only use it in your Nav bar.

Once you handle the above, you may find you don't have the problem you
asked about.

--
-bts
-Motorcycles defy gravity; cars just suck
Feb 17 '07 #2

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

Similar topics

4
by: cooldv | last post by:
i learnt from *Ken Schaefer's* website that for security reasons, u should put your DB outside the website root directory. this is his webpage -...
2
by: Bettina | last post by:
I have a text field and I want that after I enter a text in this text field, the focus goes to the button.gif. How can I do it? Any ideas? I know that when you use an input type="submit", the focus...
7
by: Sherry Littletree | last post by:
Hi All I am working on a site that has a large amount of common html on all its web pages. I am looking for a way to place this in a single file so, if changes are made, I can change this...
2
by: Dickyb | last post by:
Extracting an Icon and Placing It On The Desktop (C# Language) I constructed a suite of programs in C++ several years ago that handle my financial portfolio, and now I have converted them to...
4
by: Stu | last post by:
Hi, I am writing a content management system that has to have W3C compliant output. The pages are template driven and there are special strings within the template to be used as placeholders for...
12
by: Logan | last post by:
Hi, I am not a very experienced asp.net developer, but have a fair idea on how it works & better idea on vb.net. My requirement is to place an asp.net page on a website - which currently has...
5
by: Tina | last post by:
How is it possible to designate a textbox so that when the .aspx page is displayed the cursor is already there so the user can just start typing instead of having to click in the textbox with the...
2
by: Brian A. Cline | last post by:
After placing several images in an embedded resource file, the size of my program's executable has jumped considerably. I don't need these images until a specific dialog pops up, and it's possible...
5
by: Joey | last post by:
How do I place comments in aspx pages that are subscribed to master pages? This is going to be necessary as all source code pages must have copyrights/author information etc... When I attempt...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.