/    Sign up×
Community /Pin to ProfileBookmark

Border/Cellspacing Question

Hi All,

I’m currently working on a page where I have an image that appears in the upper-right hand portion of the main content on the page, and the content flows to the left and then underneath the image. The image is in a separate table. I’d like to create some space between the left side of the image and the content, and also the bottom of the image and the content, so that it doesn’t look like the content is running into the image.

Is there a way to do this without using CSS? I’ve played around with the ‘border’ and ‘cellspacing’ attributes, but I can’t figure out how to get them to only appear on the left and bottom of the table. When I use them on all four borders, the image is no longer aligned with the content text.

Any input appreciated. ?

Thanks,
Sam

to post a comment
HTML

4 Comments(s)

Copy linkTweet thisAlerts:
@bathurst_guyDec 03.2005 — without using CSS. Why? It would be so easy with CSS.
Copy linkTweet thisAlerts:
@WebFreedomauthorDec 03.2005 — To be honest, I don't really know CSS, and this is the final step I need to complete in order to upload my site. I did go through the w3schools.com CSS tutorial and tried to implement it in my code, but I couldn't get it to work. I'm not opposed to learning CSS proper at some later time, but for right now, I really just want to get my site (and others) up and running.

If CSS is as simple as you make it sound, could you provide me with a few lines of code (I'm assuming that's all it would take) that I could use to accomplish the task?

Thanks either way, and thanks for the feedback.

Sam
Copy linkTweet thisAlerts:
@NogDogDec 03.2005 — Quickest solution I can think of is to add a style attribute to the image tag in question:
<i>
</i>&lt;img src="foobar.gif" alt="logo" width="200" height="100"
[color=red]style="margin-left: 10px; margin-bottom: 10px;"[/color]&gt;

(This is using in-line CSS, so you'll then be able to claim you use some CSS on your site. ? )
Copy linkTweet thisAlerts:
@WebFreedomauthorDec 03.2005 — NogDog,

That did the trick. Thank you. ?

Sam

PS I tried to add the <blink> tag, but it didn't work. And now my cat is dead. ?
×

Success!

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