/    Sign up×
Community /Pin to ProfileBookmark

Firefox, Opera not displaying DIV borders

I have this code that creates a DIV menu bar. It should have a 2px black border at the top and bottom of the DIV. This works ok in IE, but not in Firefox or Opera, and I’m trying to figure out why.

The page is located [URL=http://www.myfilmvalet.com/html-basic.php]here.[/URL]

[code]<div style=”position: absolute; left: 0px; top: 100px; width: 796px;
height: 16px; background-color: #FFFFFF; padding: 0px; margin: 0px;
border-style: solid; border-top: 2px; border-bottom: 2px; border-left: 0px;
border-right: 0px; border-color: #000000;” align=”left”></div>[/code]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@ray326Dec 28.2005 — Try this.

border: 2px solid #000;


border-left: 0;

border-right: 0;
Copy linkTweet thisAlerts:
@JazzcatCBauthorDec 28.2005 — Try this.

border: 2px solid #000;


border-left: 0;

border-right: 0;[/QUOTE]

That fixed it. Thanks Ray.
Copy linkTweet thisAlerts:
@StudioMexDec 31.2005 — This is your code:

<div style="position: absolute; left: 0px; top: 100px; width: 796px;

height: 16px; background-color: #FFFFFF; padding: 0px; margin: 0px;

border-style: solid; border-top: 2px; border-bottom: 2px; border-left: 0px;

border-right: 0px; border-color: #000000;" align="left"></div>

You can also do:

<div style="position: absolute; left: 0px; top: 100px; width: 796px;

height: 16px; background-color: #FFFFFF; padding: 0px; margin: 0px;

border-top: 2px solid #000; border-bottom: 2px solid #000; align="left"></div>


Is just a cleaner way to make your borders....?
×

Success!

Help @JazzcatCB spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...