SearchSearch   

What's wrong with my css?

 
   Webmaster Forums (Home) -> CSS RSS
Next:  Object Expected  
Author Message
Terry

External


Since: Aug 12, 2007
Posts: 3



(Msg. 1) Posted: Sun Aug 12, 2007 1:16 pm
Post subject: What's wrong with my css?
Archived from groups: comp>infosystems>www>authoring>stylesheets (more info?)

Hi everyone.

I am hoping that someone can help me out with my css. I will post a
file showing what I am trying to achieve (called terrysdesign).


I am wondering why, unless I give a specific height for the division
"contentcontainer", my borders do not extend to go around my content.
I am also having a hard time applying padding to the divs
"contentright" and "contentleft"


Lastly, If I refresh the page it will jump in IE. This does not occur
with Firefox or Netscape.


Any help, is greatly appreciated. I am also posting a screenshot of
what I have now in IE. It is called terrysiescreenshot.


Below is the css file as well as the html page.


body {
text-align: center;
margin-left: 0px;
margin-top: 0px;



}


#containerfx {
width: auto;
height: auto;


}


#container {
position: relative;
/*overflow; hidden;*/
top: 0;
left: 0;
text-align: left;
width: 778px;
padding: 0;
margin:auto;
border: 2px solid #999999; padding: 0;


}


#header {
position: relative; /*absolute;*/
background-image: url(images/header-with-veg-rest.jpg);
top:0;
left:0;
width: 778px;
height: 242px;
border:0;
margin: 0;
padding: 0;


}


#navcontainer {
position: absolute;
/*float: left;*/
top: 217px;
left: 0;
width: 778px;
height: 31px;


}


..navigations {
float:left;
padding-left:22px;
text-align:center;
font: 14px arial;


}


a.nav:link {
color: #333333;
text-decoration: none;


}


a.nav:visited {
color: #333333;
text-decoration: none;


}


a.nav:hover {
color: #006633;
text-decoration: none;


}


#contentcontainer {
background-color: orange;
position: relative;
text-align: left;
width: 100%;
/* height: 400px; */
border: 2px solid red; padding: 0;
/*padding: 0;*/
/*margin:auto;*/


}


#contentleft {
background-color: blue;
position: absolute;
top: 5px;
left:0px;
margin-right: 30%;
padding-right: 10px;
/*margin: auto;*/
float: left;
width: 33%;
/*display:inline;*/
/*overflow:hidden;*/
border-right: 2px dotted #999999;margin:0; padding: 0;


}


#contentright {
background-color: green;
top: 5px;
position: absolute;
margin-left: 34%;
/*padding-left:3px;*/
width: 66%;
/*display:inline;*/


}


#gap {
position: relative;
width: 778px;
height:2px;
padding:0;
margin:0;


}


Below is the html page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>headertasty</title>
<META HTTP-EQUIP="Content-Type" content="text/html;
charset=iso-8859-1">
<link rel="STYLESHEET" href="styles1.css" type="text/css">
</head>
<body>
<div id="containerfx">
<div id="container">
<div id="header"></div>
<div id="navcontainer">
<div class="navigations"><a class="nav" href="">about us</
a></
div>
<div class="navigations"><a class="nav"
href="">reservations</
a></div>
<div class="navigations"><a class="nav" href="">drink</
a></div>
<div class="navigations"><a class="nav" href="">our food</
a></
div>
<div class="navigations"><a class="nav" href="">contacts</
a></
div>
</div>


<div id="contentcontainer">
<div id="contentleft">
Well let's see if this works. I am certainly hoping that
it will. But you never
know. Sometimes these things are temperamental.Well
let's
see if this works. I am certainly hping that it will. But you
never know. Sometimes these things are temperamental.<br>
So it remains to be seen what is going to happen.
</div>
<div id="contentright">
Well let's see if this works. I am certainly hoping that
it will. But you never
know. Sometimes these things are temperamental.<br>
So it remains to be seen what is going to happen.
</div>
</div>
</div>
</div>
</body>
</html>
Back to top
Terry

External


Since: Aug 12, 2007
Posts: 3



(Msg. 2) Posted: Sun Aug 12, 2007 2:48 pm
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

Hi Jonathan.

Unfortunately, the site is not live. But I can turn off my firewall
so that you can see it from web server on my machine.

Can you let me know if you are still around. You can email me that
way I can know when to turn my firewall off.

Thanks,

Terry



On Aug 12, 4:57 pm, "Jonathan N. Little" <lws4... RemoveThis @centralva.net>
wrote:
> Terry wrote:
>
> > Below is the css file as well as the html page.
>
> No, no, no... Don't post he code, post the URL to the code...
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
Back to top
Jonathan N. Little

External


Since: Feb 02, 2005
Posts: 2526



(Msg. 3) Posted: Sun Aug 12, 2007 4:57 pm
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

Terry wrote:

>
> Below is the css file as well as the html page.

No, no, no... Don't post the code, post the URL to the code...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Back to top
Terry

External


Since: Aug 12, 2007
Posts: 3



(Msg. 4) Posted: Sun Aug 12, 2007 8:53 pm
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

Hi again.

I now have my site posted on geocities.

The url is http://www.geocities.com/terry.murray@rogers.com/restaurant.htm

I was hoping that the grey border would extend right around the whole
content but it did not. I am also trying to pad the blue and green
<div>'s.

Any help would be appreciated.

Thanks,

Terry.


On Aug 12, 9:41 pm, "Jonathan N. Little" <lws4... DeleteThis @centralva.net>
wrote:
> Terry wrote:
> > Hi Jonathan.
>
> Top post corrected and signatures trimmed, Google "top posting usenet"
> as see why not to do it.
>
> > On Aug 12, 4:57 pm, "Jonathan N. Little" <lws4... DeleteThis @centralva.net> > wrote:
> >> Terry wrote:
>
> >>
> >>> Below is the css file as well as the html page.
> >> No, no, no... Don't post he code, post the URL to the code...
>
>
>
> > Unfortunately, the site is not live. But I can turn off my firewall
> > so that you can see it from web server on my machine.
>
> No. Just put up on a public server.
>
> 1 Use ISP's free webspace
> 2 Use your present site's server but put in a temp folder for examples
> 3 Use a free webserver for examples...
>
>
>
> > Can you let me know if you are still around. You can email me that
> > way I can know when to turn my firewall off.
>
> No this is Usenet not email. All correspondence is public and posted.
>
> --
> Take care,
>
> Jonathan
> -------------------
> LITTLE WORKS STUDIOhttp://www.LittleWorksStudio.com
Back to top
Jonathan N. Little

External


Since: Feb 02, 2005
Posts: 2526



(Msg. 5) Posted: Sun Aug 12, 2007 9:41 pm
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

Terry wrote:
> Hi Jonathan.

Top post corrected and signatures trimmed, Google "top posting usenet"
as see why not to do it.

> On Aug 12, 4:57 pm, "Jonathan N. Little" <lws4....TakeThisOut@centralva.net>
> wrote:
>> Terry wrote:
>>
>>> Below is the css file as well as the html page.
>> No, no, no... Don't post he code, post the URL to the code...

>
> Unfortunately, the site is not live. But I can turn off my firewall
> so that you can see it from web server on my machine.


No. Just put up on a public server.

1 Use ISP's free webspace
2 Use your present site's server but put in a temp folder for examples
3 Use a free webserver for examples...

>
> Can you let me know if you are still around. You can email me that
> way I can know when to turn my firewall off.
>

No this is Usenet not email. All correspondence is public and posted.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Back to top
Windsun

External


Since: Jul 22, 2007
Posts: 6



(Msg. 6) Posted: Sun Aug 12, 2007 9:52 pm
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

Personally I prefer to read top posted replies. it gets really old scrolling
down to the bottom of a 4 page string of replies to see a one-word answer.

When people learn to trim their posts, then I will reconsider.

...................................................................................................
"Jonathan N. Little" <lws4art DeleteThis @centralva.net> wrote in message
news:94054$46bfb6d1$40cba7ac$445@NAXS.COM...

>
> Top post corrected and signatures trimmed, Google "top posting usenet" as
> see why not to do it.
Back to top
Bergamot

External


Since: Sep 27, 2006
Posts: 727



(Msg. 7) Posted: Mon Aug 13, 2007 7:39 am
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

Windsun wrote:
> Personally I prefer to read top posted replies.

It's not about you. It's about following the accepted conventions of
this newsgroup.

> it gets really old scrolling
> down to the bottom of a 4 page string of replies to see a one-word answer.

That just means the poster hasn't learned how to quote properly.
http://web.presby.edu/~nnqadmin/nnq/nquote.html

> When people learn to trim their posts, then I will reconsider.

Untrimmed replies bug me, too, but just because someone else does it
(including some "regulars") doesn't mean it's an acceptable practice.

--
Berg
Back to top
dorayme

External


Since: Feb 19, 2006
Posts: 3160



(Msg. 8) Posted: Mon Aug 13, 2007 2:46 pm
Post subject: Re: What's wrong with my css?
Archived from groups: per prev. post (more info?)

In article
<1186977220.856368.107620.DeleteThis@w3g2000hsg.googlegroups.com>,
Terry <terry.murray.DeleteThis@rogers.com> wrote:

> Hi again.
>
> I now have my site posted on geocities.
>
> The url is http://www.geocities.com/terry.murray@rogers.com/restaurant.htm
>
> I was hoping that the grey border would extend right around the whole
> content but it did not. I am also trying to pad the blue and green
> <div>'s.
>
> Any help would be appreciated.
>

You did not take Jonathan Little's advice to not top post?

There are 23 Validation errors on page. Can you reduce them a bit?

The grey border is there, it is obscured a bit by your red border
on the content container.

Three ways to go:

(1) Make the border on #container 6px or more


(2) Remove the border on #contentcontainer


(3) Both the above (my preference)

--
dorayme
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> CSS
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum