Ok a bit of help

User 2167305 Photo


Registered User
51 posts

Hey there,

I am working on a website to replace the website for my mom's work, i have it (refuring to the design) all most looking the way i would like it to. Although i have run into a bit of an issue, i can not get the content to align in the right way.

If you go to http://199.195.140.104/testing/nsapples/ you can see that the side bar seems to over flow on to the content area. I have tried almost everything i know it must be simple. (ohh i have used two images, for the header/background) where you see that plus sign is going to be the logo.


the css is attached

Attachments:
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

I changed the values for textarea1 and content like this:
.container {
margin-left: auto;
margin-right: auto;
width: 980px; /* change this to whatever your width is */
height: auto;
border: 1px solid red;
}

.textarea1 {
width: 220px;
float:left;
padding: 7px;
background-color: #DBF1AB;
border-radius: 13px;
margin-right: 6px;

}


Note that you have to remove the margin:auto from the two entities, and both have to be floated. The width of the two and the paddings/margins have to be adjusted to give room for them to be side by side within your container div.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2167305 Photo


Registered User
51 posts

Hi there,

Thanks that's helped a bit, now the content area extends behind the sidebar, any ideas on how fix that so it does not extend into the sidebar?
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Oops! My fault! I said 'content' in my post above, but copied the code for the 'container'.

The textarea1 code is correct, and here comes the content one:

.content {
width: 720px;
float:left;
background-color : #E8E9EE;
border-style: solid;
border-radius: 13px;
padding: 7px;
border-color: #004000;
}


Leave the container code as it was. (the red border was just an aide to see where I was on the page, I should have removed it before posting). You should now have the two text areas side by side. You can play with the margins/paddings and width until you get it the way you want.

But you'll probably see that the footer has jumped up to the right of the content. To get it down to the bottom you need a bit of css like this:

.clearfix {
clear: left;
}


and some html like this:

<div class="clearfix"></div>


Place that code immediately before the footer. You will now have your wee text 'This is a footer' at the bottom, at the far left, but that can be fixed when you style the footer and give it the same width as the container..
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Well, I see that you have followed my suggestions (a 'thanks' would have been appreciated ;) ).

But you still have the footer content up in the right corner, and that is due to the absolute positioning.

If I may suggest a bit more:
In the html:

Put in the forgotten end div for the clearfix.
Remove the <p> and </p> from the footer

Then use the following css for footer and footerright:

.footer
{
background-image: url('../images/header_bkgd.png');
width: 980px;
margin: 10px auto 0;
height: 90px;;

}

.footerright {
float: right;
width: 85px;
top: 0px;
right: 0px;
padding-top: 15px;
padding-right: 5px;

}

img {
border: none;
}


If you want to get rid of the blue border around the images for valid code, use the img class that I have suggested.

Well, all of this is provided the result is supposed to look like the one in the attachment.

However, if you want the two validation images to appear side by side and the footer bar accordingly thinner, just do some adjustmants to the width of the footerright (e.g. 180px) and also the padding-top (8px), and the height of the footer can be reduced to 45px.
Attachments:
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2167305 Photo


Registered User
51 posts

Hey i finshed the site at 11 last night :P

And i forgot about it. There is no footer (but there was). Just going to leave it for now
User 1948478 Photo


Senior Advisor
1,850 posts

Cmarenburg wrote:
Hey i finshed the site at 11 last night :P
And i forgot about it. There is no footer (but there was). Just going to leave it for now

Seems to me there's still a little something missing in this post, no...? ;)
User 187934 Photo


Senior Advisor
20,271 posts

Per wrote:
Cmarenburg wrote:
Hey i finshed the site at 11 last night :P
And i forgot about it. There is no footer (but there was). Just going to leave it for now

Seems to me there's still a little something missing in this post, no...? ;)


First post.;)

Cmarenburg wrote:
Hey there,

I am working on a website to replace the website for my mom's work, i have it (refuring to the design) all most looking the way i would like it to. Although i have run into a bit of an issue, i can not get the content to align in the right way.

If you go to http://199.195.140.104/testing/nsapples/ you can see that the side bar seems to over flow on to the content area. I have tried almost everything i know it must be simple. (ohh i have used two images, for the header/background) where you see that plus sign is going to be the logo.


the css is attached



I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 1948478 Photo


Senior Advisor
1,850 posts

I'm afraid I may have confused you, Eric! :)
Maybe it's just a 'cultural difference', - or a generational one...? :D
User 122279 Photo


Senior Advisor
14,649 posts
Online Now

Most likely the 'generation' one ;)
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com



Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.