/    Sign up×
Community /Pin to ProfileBookmark

I am fed up with starting my questions with “I have a table”, but, I have a table that I want to replace. Oddly, the part I thought would be real simple, has turned out not to be. Currently each table has one row and two columns, the cell has text in it, the second cell has one or two pictures. The problem is that I could do with a css solution that does not require me to enter the EXACT width of the damn picture and text. I have hundreds of these tables to replace and it will take me forever if I have to calculate the width of the text and the width of the picture. Anyone any ideas?

to post a comment
CSS

5 Comments(s)

Copy linkTweet thisAlerts:
@DaveSWAug 12.2004 — does it have to be a full column? could you just use css

#content img {

float: right;

clear: right;

}

assuming you have content as the id on something around the content.

are all the images the same size?

is there a set number of different dimensions?

or are they random?

Maybe showing us what you've got would be more productive than us speculating...
Copy linkTweet thisAlerts:
@ray326Aug 12.2004 — <i>
</i>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"&gt;

&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Untitled&lt;/title&gt;

&lt;style type="text/css"&gt;
.txtdiv {width:30%;float:left;border:1px solid black;}
.imgdiv {margin-left: 31%; border:1px dotted black;}
.imgdiv img { display:block; }
&lt;/style&gt;

&lt;body&gt;
&lt;div class="txtdiv"&gt;
&lt;p&gt;the div with the text&lt;/p&gt;
&lt;/div&gt;
&lt;div class="imgdiv"&gt;
&lt;img src="http://www.webdeveloper.com/forum/images/webdev-logo2.gif" alt=""&gt;
&lt;img src="http://www.webdeveloper.com/forum/images/recent-articles.gif" alt=""&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
Copy linkTweet thisAlerts:
@SuzanneBauthorAug 13.2004 — Thanks! I will try this and get back....later....
Copy linkTweet thisAlerts:
@SuzanneBauthorAug 13.2004 — It's kinda difficult to show you because it's an entire site and the parts in question are difficult to describe.

There are three hundred tables, divided into a left and right cell. Each left cell has text. Each right cell has pictures. Picture size and quantity varies. I need something that is very simple to implement - becuase I have to do it hundreds of times.
Copy linkTweet thisAlerts:
@Stephen_PhilbinAug 13.2004 — Can we have a link to the site? I think I might be able to help you save a lot of time if I can see what you have and what you want.
×

Success!

Help @SuzanneB 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.4,
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: @Yussuf4331,
tipped: article
amount: 1000 SATS,

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

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...