Shoutbox

Back to the webdesign fun - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: Back to the webdesign fun (/showthread.php?tid=50506)

Back to the webdesign fun by wj on 09-14-2005 at 08:22 PM

Ok guys. Heres my problem.

http://www.avidphotos.net/

It looks perfect in IE. Theres one minor spot where the background is missing, What do I need to alter in the CSS to fix that? I've got it just how I want it but need to fix that little bug.

Help is greatly appriciated as I just finished a website for a client and I'm back working on this one.


RE: Back to the webdesign fun by hmaster on 09-14-2005 at 08:34 PM

Well it appears in your css, you are not using your #container :undecided: which has your background:; tag. Your menu and content are just really fitting in your #head, making #content by itself which has no background:; tag which wont show teh shadow part.
I havnt tested it so im not sure but try replacing

code:
#content
{
    position: relative;
    top: -75px;
    z-index: 2;
    font-size: 12px;
    padding-left: 26px;
    padding-right: 26px;
    color: #FFF;
}

to

code:
#content
{
    position: relative;
    top: -75px;
    z-index: 2;
    font-size: 12px;
    padding-left: 26px;
    padding-right: 26px;
    color: #FFF;
background-image: url('../images/red/bg.gif');
    background-repeat: repeat-y;
    background-color: #4B0000;
}

RE: Back to the webdesign fun by wj on 09-14-2005 at 09:02 PM

Didnt work.


RE: Back to the webdesign fun by hmaster on 09-14-2005 at 09:15 PM

Here you go =)
Included, wj.html and red.css ;)


RE: Back to the webdesign fun by wj on 09-14-2005 at 09:28 PM

Thanks hmaster!

Now, How do I get it to align left in firefox. It looks fine in IE, just it's centered in Firefox and I dont know how it go there.


RE: Back to the webdesign fun by surfichris on 09-14-2005 at 10:23 PM

Delete the margin: 0px auto; from #head.


RE: Back to the webdesign fun by wj on 09-14-2005 at 10:33 PM

No such luck. It just left aligns the whole thing and the text is still centered.

I also tried removing it from the content div, No change in overall look or feel so I left it out, but the text is still centered.


RE: Back to the webdesign fun by surfichris on 09-14-2005 at 10:45 PM

code:
body
{
    background-image: url('../images/top_bg.gif');
    background-repeat: repeat-x;
    background-color: #F0E9CE;
    margin: 0;
    padding: 0;
}

#head
{
    width: 700px;
    padding: 0 0 0;
    background: url('../images/red/bg.gif') repeat-y;
    background-color: #4B0000;
    font-size: 0px;
}

#top
{
    background: url('../images/red/top.gif') no-repeat;
    width: 720px;
    height: 300px;
}

#endCap
{
    width: 700px;
    padding-top: 0px;
    padding-left: 10px;
    padding-right: 10px;
    background-image: url('../images/red/base.gif');
    background-repeat: no-repeat;
    font-size: 0px;
    height: 142px;
}

#content
{
    font-size: 12px;
    padding-left: 26px;
    padding-right: 26px;
    color: #FFF;
}

#container
{
    width: 668px;
    padding-left: 26px;
    padding-right: 26px;
    background-image: url('../images/red/bg.gif');
    background-repeat: repeat-y;
    background-color: #4B0000;
    color: #FFF;
    font-family: Verdana, Arial;
    font-size: 13px;
    height: 300px;
}

#copyright
{
    width: 668px;
    height: 125px;
    padding-top: 280px;
    padding-left: 26px;
    padding-right: 26px;
    background-image: url('../images/main_bg.gif');
    background-repeat: repeat-y;
    background-color: #4B0000;
    color: #FFF;
    font-family: Verdana, Arial;
    font-size: 13px;
    margin: 0px auto;
}

#menu
{
    width: 210px;
    position: absolute;
    top: 275px;
    left: 460px;
    font-family: comic sans ms;
    font-size: 14px;
}

#menu ul
{
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#menu li
{
    color: #FFF;
    padding: 0px 18px 0 0px;
    float: left;
}

#menu li a
{
    border: none;
    color: #EFEFEF;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

#menu li a:hover
{
    text-decoration: underline;
}

Working here in Firefox.
RE: Back to the webdesign fun by wj on 09-15-2005 at 12:15 AM

http://www.avidphotos.net/

Thats your CSS with some minor tweaks.


RE: Back to the webdesign fun by surfichris on 09-15-2005 at 12:20 AM

Whats wrong with it?

It looks fine here (using IE at the moment).

If you WERE still on MSN I could help you with it :P


RE: Back to the webdesign fun by RebelSean on 09-15-2005 at 12:33 AM

Dude, I absolutly love that design. It reminds me of alot of New Orleans (If you've ever seen pictures of it on TV). Awesome job :D.


RE: Back to the webdesign fun by surfichris on 09-15-2005 at 01:13 AM

You people really seem to like doing things the hard way. :dodgy:

Here Wj, take this and take a look through it - I placed some small comments in the CSS too (which is inline so i don't have to upload two files)

Love - your friendly CSS expert (A)


RE: Back to the webdesign fun by wj on 09-15-2005 at 02:54 AM

ok, Take a look at the code on avidphotos.net now, It's does everything I want :-P and it works in Safari (so I'm assuming it will work in Firefox).

Just had to think it through.

And Surfi, The probelm with that code is that it's left aligned, I wanted center :-P Sorry, but THANKS for the help.


RE: Back to the webdesign fun by surfichris on 09-15-2005 at 01:19 PM

quote:
Originally posted by wj
Now, How do I get it to align left in firefox. It looks fine in IE, just it's centered in Firefox and I dont know how it go there.
Bitch! You said LEFT! I did it LEFT! :P
RE: Back to the webdesign fun by wj on 09-15-2005 at 03:13 PM

Oopps.....

* wj pats surfi on the head.


Thanks Surfi ;-)

What I was talking about there was the text... Guess I need to clarify next time.


RE: Back to the webdesign fun by qune on 09-16-2005 at 07:27 AM

quote:
Originally posted by wj
And Surfi, The probelm with that code is that it's left aligned, I wanted center :-P Sorry, but THANKS for the help.
to make it center just give your master div (#container probably) the following

margin:0 auto 0 auto;

as in 0 pixels for top and bottom (which are your to change if needed)... the auto values calculate the needed free space equally for both empty sides which makes the #container aligned as center...

EDIT: I also misunderstood... anyways maybe the answer comes useful somewhere...

take a look at still-not-ready movies.ee... built up only on css and divs - works excellent on IE, FF and Opera latest versions...

--------------------------------------------------------------------------------------------

a little offtopic:

instead of
margin-top:10px;
margin-right:20px;
margin-bottom:30px;
margin-left:40px;

you can use
margin:10px 20px 30px 40px;
(same system goes for padding)

also instead of
background-image:url(images/bg.gif);
background repeat:no repeat;

you can use
background-image:url(images/bg.gif) no-repeat;

and borders like
border:2px solid #850000;


these few shortened versions save your time a lot and optimize your css... more info @ www.w3schools & alistapart.com...