div borders not showing (perhaps just firefirefox)

This is a discussion on "div borders not showing (perhaps just firefirefox)" within the Web Page Design section. This forum, and the thread "div borders not showing (perhaps just firefirefox) are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 11th, 2007, 08:56
Junior Member
Join Date: Apr 2007
Location: England
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
div borders not showing (perhaps just firefirefox)

Another problem im afraid everyone:

i have been doing a css site and I have made an image as a header, with a navigation bar below it. the html is this:

Code: Select all
<div id="header"><img name="trpctesthead" src="../images/trpc-testhead.jpg" width=100% height="150" border="0" id="trpctesthead" alt="header image" />


<div class="style3" id="navigation">
  <p class="style6">
    <span class="style6"><span class="style7"><a href="#">Home</a> |
    <a href="#">Photo Gallery</a> |
    <a href="#">Applications</a> |
    <a href="#">For Sale/ Wanted</a> |
    <a href="#">Contact Us</a> |
    <a href="#">Links</a> </span>|</span></p>
</div>

and the css is this:

Code: Select all
#header
{
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 150px;
}

#navigation{
    position:absolute;
    background-color:#FFFFFF;
    color:#FFFFFF;
    width:628px;
    height:23px;
    left:10px;
    z-index:2;
    top: 169px;
    border-width:6px;
    border-color:#006633
}

The border is as you can see set to 6px thick in a dark green colour, but it will not show. I use mozilla firefox as my browser, so maybe it shows in others, but is there a way to fix this???


Thanks

Last edited by karinne; Apr 11th, 2007 at 12:49. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote

  #2 (permalink)  
Old Apr 11th, 2007, 09:01
Junior Member
Join Date: Feb 2006
Location: Florence - Italy
Age: 22
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Gwayn Send a message via MSN to Gwayn
Re: div borders not showing (perhaps just firefirefox)

Hi Toby,
you have to add "border-style:solid;" to make the border appear.
You can set border-style in every style you want but it has to be different than "none" to be visible.

And also... please install the other browsers, at least IE7 and Opera to test the css at least on the most used browsers.
Reply With Quote
  #3 (permalink)  
Old Apr 11th, 2007, 12:54
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: div borders not showing (perhaps just firefirefox)

Please use [code]...[/code] tags when displaying code!

Yep ... like Gwayn said, you're missing the border-style property. If all the side have the same style, width and color, you can do this:

Code: Select all
#navigation{
    position:absolute;
    background-color:#FFFFFF;
    color:#FFFFFF;
    width:628px;
    height:23px;
    left:10px;
    z-index:2;
    top: 169px;
    border: 6px solid #006633;
}
Proper CSS shorthand
Efficient CSS with shorthand properties

And yes ... you should have at least IE7 and Opera to test you site in.
Reply With Quote
Reply

Tags
border, browser, css, div, help, problem, width

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Borders not showing Xyis Web Page Design 3 Jul 17th, 2007 14:02
Help with div borders in FF, please? Donny Bahama Web Page Design 12 Apr 10th, 2007 20:09
Tables and 1px borders? Perad Web Page Design 3 Dec 9th, 2006 19:34
background image not showing up in Firefox but showing in other browsers! eskymo Web Page Design 21 Jan 19th, 2006 23:10
borders benbacardi Web Page Design 2 Jun 4th, 2004 15:39


All times are GMT. The time now is 07:50.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43