/    Sign up×
Community /Pin to ProfileBookmark

Converting a simple table layout to CSS?

I’ve been working on a header section for a website; however, I’m having trouble converting my table layout to CSS.

If you go to,
[url]http://populateme.com/test6.php[/url] – and view the source, you’ll see it’s all in a <table>…</table>
When using <div style=”border-collapse: collapse; padding: 0; margin: 0; width: 800px;”> instead of <table…> it produces some gap with the navigation and search box, and the image are offbase.

Notice in test6.php the image “big test” is in a <td style=”…” I tried making it:
<td>
<img src=”http://www.populateme.com/images/header-new.jpg” />

but it leaves a big space. Take a look [url]http://populateme.com/test7.php[/url]

Can anyone help me convert those that one big table into a CSS container?

Thanks.

to post a comment
CSS

1 Comments(s)

Copy linkTweet thisAlerts:
@ray326Sep 08.2007 — border-collapse isn't a div thing.

The big gap is from your ul padding and I'd make the a color white so the text shows in an unhovered state.
×

Success!

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