473,804 Members | 3,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trying to having a div center and then div at the side got a problem

Hi all,

Trying to having a div center and then div at the side got which i get
a problem with

The only way i can see to have this done is using a neg number for the
margin-top i can't use this becuase i don;t know the lenght of the main
div.

How can i fix this?

Thanks

Donald

<html>
<head>

<style type="text/css">
#main {

width:600px;
position:relati ve;
margin: 0px auto 0px auto;

/*
float:left;
*/
}

#side {
width:100px;
float:right;
margin-top: -420px;
}

</style>
</head>
<body>

<div id="main">
Center of page<br/><br/>

Latin is an ancient Indo-European language. It was originally spoken
only in Latium, the region immediately surrounding Rome, but gained
wide currency as the formal language of the Roman Republic and Roman
Empire. Later adopted by medieval scholars and the Catholic Church, it
remained alive for many centuries after Rome's fall.

An inflectional and synthetic language, Latin relies little on word
order, conveying meaning through a system of affixes attached to word
stems. The Latin alphabet, derived from that of the Etruscans, remains
the most widely-used alphabet in the world. Although Ecclesiastical
Latin remains the official, national language of Vatican City, Latin is
now widely considered to be an extinct language, with very few fluent
speakers and almost no native ones.

Nevertheless, Latin has exerted a major influence on many other
languages that are still thriving, and continues to see limited use in
academia, medicine, scientific classification and law. Six out of every
ten commonly-used English words are derived, directly or indirectly,
from Latin. All of the so-called Romance languages are descended from
Vulgar Latin, and many words adapted from Latin are found in other
modern languages - all part of its legacy as the lingua franca of the
Western world for over a thousand years. It was only replaced in this
capacity by French during the 18th century, and even then continued to
be used in certain intellectual and political circles.

The Catholic Church used Latin as its primary liturgical language until
the advent of the Second Vatican Council in the 1960s, after which the
various vernacular languages of the parishioners were allowed in the
liturgy. Before that time, it was common to find Latin taught in many
primary, grammar and secondary schools throughout the world.

</div>

<div id="side">
Right of page but at the top of the page<br/><br/>
Latin is an ancient Indo-European language. It was originally spoken
only in Latium, the region immediately surrounding Rome, but gained
wide currency as the formal language of the Roman Republic and Roman
Empire. Later adopted by medieval scholars and the Catholic Church, it
remained alive for many centuries after Rome's fall.

An inflectional and synthetic language, Latin relies little on word
order, conveying meaning through a system of affixes attached to word
stems. The Latin alphabet, derived from that of the Etruscans, remains
the most widely-used alphabet in the world. Although Ecclesiastical
Latin remains the official, national language of Vatican City, Latin is
now widely considered to be an extinct language, with very few fluent
speakers and almost no native ones.

Nevertheless, Latin has exerted a major influence on many other
languages that are still thriving, and continues to see limited use in
academia, medicine, scientific classification and law. Six out of every
ten commonly-used English words are derived, directly or indirectly,
from Latin. All of the so-called Romance languages are descended from
Vulgar Latin, and many words adapted from Latin are found in other
modern languages - all part of its legacy as the lingua franca of the
Western world for over a thousand years. It was only replaced in this
capacity by French during the 18th century, and even then continued to
be used in certain intellectual and political circles.

The Catholic Church used Latin as its primary liturgical language until
the advent of the Second Vatican Council in the 1960s, after which the
various vernacular languages of the parishioners were allowed in the
liturgy. Before that time, it was common to find Latin taught in many
primary, grammar and secondary schools throughout the world.
</div>

</body>
</html>

Aug 16 '06 #1
0 1165

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

Similar topics

10
26879
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
25
4078
by: Neo Geshel | last post by:
This works: <form> <asp:TextBox id="name" /> <%= name.ClientID %> </form> But this DOES NOT work: <form>
4
1469
by: Eric A. Johnson | last post by:
For the following code: ' return String representation of CTriangleShape Public Overrides Function ToString() As String ' use MyBase reference to return CShape String Return MyBase.ToString & ";" & vbCrLf & _
8
1922
by: Viken Karaguesian | last post by:
Hello all, I'll start with this question: Can I assign an ID *and* a CLASS to a DIV? I am under the impression that you can. I'm having a problem that I can't seem to figure out. Some background info: I'm an amateur who makes sites for fun. I'm creating a website for my son's small school. It's a table-less design. I'm basically using a Container DIV with a Content DIV and a right-floating Sidebar DIV.
7
5411
by: eholz1 | last post by:
Hello Group, Perhaps you can help me. I have a mysql db, that holds images. Images are encoded using base64_decode/encode, etc. Image data seems fine. I have a view.php page that is supposed to show the image, and an image.php page that accesses the database, retrives the image data, and then (theoretically) prints the decoded data to the page. below is the view.php page code: problem area the img tag src no
11
1899
by: =?Utf-8?B?TWlrZSBDb2xsaW5z?= | last post by:
I am trying to get the text of an item in a GridView, but am doing something wrong. Can someone help me with the correct C# statement I need? Below is my GridView and my attempt to get the control. Thank you. string option = ((TextBox)dgDropDownMenus.Items.FindControl("txtName")).Text; -----------------------DataGrid------------------------------------------- <asp:datagrid id="dgMenus" style="Z-INDEX: 101; LEFT: 0px; POSITION:
5
2686
by: pbd22 | last post by:
Hi. I am trying to poll a long-running process via a hidden IFrame. I am noticing that the online errata gives advice for handling a server response: window.parent.handleServerResponse(); The problem I am having with this is that the above function gets called ***after*** the long-running response is completed.
1
3150
by: rsteph | last post by:
I've got some product information pages, with images and text, all setup within a table. I'm trying to add a small image in the upper right hand corner of the content div (where all the important information is). I've got the product name at the top, left aligned and typically as a two lined header, and I'd like to add a small logo to the right of that, either right beside it, or in the far right corner. could anyone help me with how to set...
2
3584
by: rustyc | last post by:
Well, here's my first post in this forum (other than saying 'HI' over in the hi forum ;-) As I said over there: ... for a little side project at home, I'm writing a ham radio web site in uby/Rails. I started it in Perl and gave up on Perl as I went from the 'display the database information on the web page' to the 're-display the information from the database and allow the user to update the database using the web page' stage and realized...
0
10562
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10319
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10303
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,...
1
7608
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
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();...
0
5508
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.