/    Sign up×
Community /Pin to ProfileBookmark

CSS layout not working

Hi,

I have a html page. my problem is that my CSS is not working properly .

I am attaching the source code in a zip file .

Contents of the zip file :

myfile.html —-> this is my html file
presentlook.png —> This is the look I get when i run the above html in browser IE6/IE7
lookIwant.jpg —-> This is my desired look . I have prepared this in mspaint .

Can you please correct it so that I get the desired look. What are the changes to be done in my CSS ? I don’t want to modify the existing CSS’s but I am open to overwrite styles or use new CSS to get my desired look.

Thanks

[upl-file uuid=40d9e772-d65b-4297-b56f-fea495da9c86 size=84kB]file.zip[/upl-file]

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@letmehaveagoFeb 08.2010 — by applying the following styles on the 2nd and 3rd rows and separating the last td in the 2nd row with rowspan=2 into separate cells you can get the desired effect.

[CODE]
<style type="text/css">
/* apply to 2nd row and 3rd row */
.bordered td {
border: 1px solid black;
border-right: none;
}

/* apply to 3rd row */
.clear-border-top td {
border-top: none;
}

/* apply to first cell of row */
.bordered .first {
border: none;
}

/* apply to last cell of row */
.bordered .last {
border-top: none;
border-bottom: none;
}
</style>
[/CODE]


note: .bordered .first and .bordered .last could have been written using first-child and last-child respectively but ie doesn't support last-child and seems much cleaner to do it this way.
Copy linkTweet thisAlerts:
@cofactorauthorFeb 08.2010 — sorry,I am not clear . Can you please add this snippet in the html file and attach it so that i can download run it here.

does it solve the problem of shifting away of inner scrollable table ?

can you please look at the lookIwant.jpg file ?
Copy linkTweet thisAlerts:
@letmehaveagoFeb 09.2010 — good thing i have time. adding the border makes everything a little harder.

[upl-file uuid=a0bde6a9-0770-4d27-b253-6d88c8c1bfe7 size=2kB]mypage.zip[/upl-file]
×

Success!

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