/    Sign up×
Community /Pin to ProfileBookmark

Div not flowing with content

Hi,

i am having a problem with a container div, that’s not flowing with the content, this is causing a problem with the margin on the content section.

the page can be veiwed at [URL=”http://www.yabo.co.uk/v2/layout.php”]http://www.yabo.co.uk/v2/layout.php[/URL]

Any help is appreciated

Thanks

Daniel

to post a comment
CSS

4 Comments(s)

Copy linkTweet thisAlerts:
@spinnykidauthorJun 04.2010 — Additional

The page, both css and xhtml validates apart from the -moz-border-radius eliments
Copy linkTweet thisAlerts:
@spinnykidauthorJun 05.2010 — Hi,

Messy as it may be, i have resolved the problem with a <div style"clear:left"></div> after the content that i wanted

Thanks Anyways

SpinnyKid :p
Copy linkTweet thisAlerts:
@jason87Jun 05.2010 — Very nice site.

Do you have the text automatically go red if they are minus?

If so how did you do that?

Jason
Copy linkTweet thisAlerts:
@spinnykidauthorJun 05.2010 — Hi Jason,

Thank you for your compliment's, at the moment it is just a xhtml/css layout and not active, but when it's coded i would use an if statment..

[code=php]
if ($value >= 0) {
// Make Negative
echo "<div class="amount negativecash">-&#163;" . $value ."</div>";
} else {
// Leave at normal value
echo "<div class="amount">&#163;" . $value ."</div>";
}
[/code]


You just use the if statment to output the "negativecash" attribute in to the class of the div, or any other item that you would need to...

SpinnyKid
×

Success!

Help @spinnykid 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,
)...