/    Sign up×
Community /Pin to ProfileBookmark

problems with divs

Hi,

Overall I’m a html noob and I always used tables to get the results I wanted. Now I’m trying to get the hang of divs, but I’m having some problems. Check this very very simple page:

[URL=”http://web.ist.utl.pt/pedro.nogueira/wrong/default.html”]This page![/URL]

I can’t understand why there are no borders around the cell that says “not ok”, as the borders are set, in the css, to the div wrap which contains that cell…
Btw, it seems to give the desired output in IE…

Any help?

Thanks!

to post a comment
HTML

6 Comments(s)

Copy linkTweet thisAlerts:
@javawebdogDec 04.2008 — Can we see the .css?
Copy linkTweet thisAlerts:
@habaauthorDec 04.2008 — Can we see the .css?[/QUOTE]

Of course: CSS
Copy linkTweet thisAlerts:
@javawebdogDec 04.2008 — container has no border attributes defined in your css.
Copy linkTweet thisAlerts:
@habaauthorDec 04.2008 — container has no border attributes defined in your css.[/QUOTE]

But wrap has, and container is inside wrap... no?
Copy linkTweet thisAlerts:
@javawebdogDec 04.2008 — Your right.

I played around a bit and found that in FF the default height of #wrap is insufficient. When I added a specific value (100px) it worked fine. Have to admit ... stumped.
Copy linkTweet thisAlerts:
@habaauthorDec 04.2008 — Your right.

I played around a bit and found that in FF the default height of #wrap is insufficient. When I added a specific value (100px) it worked fine. Have to admit ... stumped.[/QUOTE]


Ah! that worked! thanks!
×

Success!

Help @haba 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 5.27,
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: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

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

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...