7 replies [Last post]
EssCee
Offline
Regular
Last seen: 14 years 2 weeks ago
Joined: 2008-05-31
Posts: 22
Points: 0

body
{
    margin: 0 auto 0 auto;
    border-top-style: solid;
    border-top-width: thick;
    border-color: #539D88;
    width: 860px;
    font-size: x-small;
}
 
#logo
{
    width: 244px;
    height: 91px;
    background-image: url('~/logo.PNG');
    background-repeat: repeat;
    float: right;
}
 
#miniBorder
{
    background-image: url('~/bord.jpg');
    width: 860px;
    height: 3px;
    background-repeat: no-repeat;
    float: left;
    padding: 1px;
}
#title
{
    background-color: #539D88;
    font-family: 'Segoe UI';
    font-size: 1.1em;
    font-weight: bold;
    color: #FFFFFF;
    text-align: center;
    height: 17px;
    padding-top: 3px;
}
#content
{
    height: 100%;
    border: thin dashed #00FFFF;
}
 
#menu
{
    width:150px;
    height:150px;
    border: thin dashed black;
}
#mainContent
{
    margin: auto 0px 0px 160px;
    width: 690px;
    height: 150px;
    border: thin dashed blue;
    float: left;
}
#footer
{
    bottom: 0px;
    border-bottom-style: dotted;
    border-bottom-width: medium;
    border-bottom-color: #FF00FF;
}

Form Code

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <link href="/Default.css" rel="stylesheet" type="text/css" />
    <title>Nothing</title>
</head>
<body>
    <form id="form1" runat="server">
<div id="logo"></div> 
&nbsp
<div id="miniBorder"></div> 
<div id="title">Test Site</div>
<div id="content">
<div id="menu"></div>
<div id="mainContent"></div>
 
</div><div id="footer"></div>
    </form>
</body>
</html>

Im trying to align the menu with mainContent. Currently i have a box to display the menu on the left then another box on the right but this is placed below the menu on the right. I would like this box to be on the right in line with the menu.

Could someone advise how to go about this please?

Thanks

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 50 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Either you have no doctype

Either you have no doctype declaration as is shown in your pasted in code, or you have not posted all your code as we request.

In the first case put in a proper strict doctype, validate the html and CSS, and then come back if the problem persists. Without a proper doctype all browsers will render in "quirks" mode and all will render quite differently.

In the second case please read the site posting guidelines and give us what we are asking for. ALL your code.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

EssCee
Offline
Regular
Last seen: 14 years 2 weeks ago
Joined: 2008-05-31
Posts: 22
Points: 0

I managed to sort it for

I managed to sort it for now. This is an ASP .Net page so it automatically generates Doctype etc etc. Ill keep that in mind for next to post it however it was a CSS code issue and not Doctype....

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 50 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

EssCee wrote:I managed to

EssCee wrote:

I managed to sort it for now. This is an ASP .Net page so it automatically generates Doctype etc etc. Ill keep that in mind for next to post it however it was a CSS code issue and not Doctype....

We cannot know that unless we see all your code. It happens time and time again that someone posts his code and we tell him to put on a proper doctype and validate his html and this by itself fixes the problem he assumed was a CSS problem. We ask for all the code as it is sent to browsers in our forum sticky posts, and we do it for a reason.

Unless you've solved your problem already, how do you know it was a CSS problem?

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

EssCee
Offline
Regular
Last seen: 14 years 2 weeks ago
Joined: 2008-05-31
Posts: 22
Points: 0

Unless you've solved your

Quote:

Unless you've solved your problem already, how do you know it was a CSS problem?

The .Net Framework is throughly tested by Microsoft, so when i create a basic page im pretty certain its fully been tested and in working condition. Otherwise there would be another million developers complaining about any issues with doctype or the basic code on this page.

This eliminates any doctype issues etc so im certain that the problem i was experiencing was to do with CSS, as it began when i added a CSS stylesheet.

Maybe the technology you guys use probably needs this to be addressed but this is how i know CSS was the problem.

Hope this clarifies.

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 50 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

EssCee wrote:Quote:Unless

EssCee wrote:
Quote:

Unless you've solved your problem already, how do you know it was a CSS problem?

The .Net Framework is throughly tested by Microsoft, so when i create a basic page im pretty certain its fully been tested and in working condition. Otherwise there would be another million developers complaining about any issues with doctype or the basic code on this page.

I don't find your reasoning in any way convincing. This is Microsoft we are talking about here. Putting faith in them to generate good html is like putting faith in the tooth fairy to deliver your christmas presents.

To be convinced otherwise I need absolutely solid evidence to the contrary. You haven't provided any so far as I can see.

In any event we ask up front for all your code for a reason, and if you don't feel you can provide it I suggest you might ask for help in a different forum. Say a .NET forum. If we are to diagnose and suggest a fix for a CSS problem we need to see all the html and all the CSS. Otherwise most folks here aren't going to spend their time trying what seems highly probable to be a waste of time that, after all, they are charging nothing for.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.

EssCee
Offline
Regular
Last seen: 14 years 2 weeks ago
Joined: 2008-05-31
Posts: 22
Points: 0

Not too sure where this is

Not too sure where this is leading to? Are you just wanting to have the last "reply" or something.

I agree many may not be happy with MS software, but thats their opinion. I would go to a .Net forum if they had one on CSS that was widely used. In all reality this is a "free forum". You asked for code upfront and in normal circumstances i provided what i felt was adequate with the technology i use.

I then clarify i have it working and ill remember for future what you have asked to have in questions yet you ranter on.

Hope this clarifies this matter if your just up for an argument please go here http://www.argueitout.com/

Ed Seedhouse
Ed Seedhouse's picture
Offline
Guru
Victoria British Columbia
Last seen: 1 year 50 weeks ago
Victoria British Columbia
Timezone: GMT-8
Joined: 2005-12-14
Posts: 3570
Points: 675

Ah, the old "You always have

Ah, the old "You always have to get the last word in, don't you?" ploy. Let's just say I do, and see if you are willing to give it to me or if you share the same fault you accuse me of.

Ed Seedhouse

Posting Guidelines

Watch out! I am carrying irony, sarcasm and satire, and know how to use them.