473,387 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Can I make the column widths firm?

If my table has a column of 200px and I insert an image of 300px the column
expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

Also, when I do "Start Without Debugging" do I then see what the site will
look like in if I were actually downloading the site?
Jun 24 '07 #1
9 1136
Here is some interesting CSS "stuff" that attacks this issue with multiple
browser types:
http://petesbloggerama.blogspot.com/...ak-tables.html
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"active" wrote:
If my table has a column of 200px and I insert an image of 300px the column
expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

Also, when I do "Start Without Debugging" do I then see what the site will
look like in if I were actually downloading the site?
Jun 24 '07 #2
Looked. Not as simple as I'd like!
I'm new at this and like to not complicate things too much.
But I have VS programming experience so using controls comes easy.

Can I place Panels or TextBoxes in the cells that might offend and control
the column width that way?

Though I think I tried and VS will not let me drag a TextBox into a cell.
Thanks for the info
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:9C**********************************@microsof t.com...
Here is some interesting CSS "stuff" that attacks this issue with multiple
browser types:
http://petesbloggerama.blogspot.com/...ak-tables.html
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"active" wrote:
>If my table has a column of 200px and I insert an image of 300px the
column
expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

Also, when I do "Start Without Debugging" do I then see what the site
will
look like in if I were actually downloading the site?

Jun 24 '07 #3
On Jun 24, 7:28 pm, " active" <activeNOS...@a-znet.comwrote:
If my table has a column of 200px and I insert an image of 300px the column
expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

Also, when I do "Start Without Debugging" do I then see what the site will
look like in if I were actually downloading the site?
Hi...
Add Css to the cells .... for instance cellStyle...
..cellStyle
{

}
and ofcourse... add this style in stylesheet...
..cellSyle img
{
width:200px;
}

suppose to solve your problem

Thanks
Masudur
http://munnacs.110mb.com

Jun 24 '07 #4
active wrote:
If my table has a column of 200px and I insert an image of 300px the column
expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?
The default behaviour for a table is to adapt itself to the contents of
the cells. If you don't want this behaviour, you have to defeat it by
specifying an exact size for every column and row, and make sure that
the sizes add up exactly to the size of the table.

Use the overflow style in css to determine what should happen when the
content is larger than the cell. For example: overflow:hidden; to clip
the content.
Also, when I do "Start Without Debugging" do I then see what the site will
look like in if I were actually downloading the site?
That depends on what you have chosen as default browser in VS. If you
are viewing it inside VS, there is naturally some differences from
viewing it in a browser, eventhough it uses the same rendering control
as IE.

--
Göran Andersson
_____
http://www.guffa.com
Jun 24 '07 #5
thanks

"Masudur" <mu*****@gmail.comwrote in message
news:11*********************@q75g2000hsh.googlegro ups.com...
On Jun 24, 7:28 pm, " active" <activeNOS...@a-znet.comwrote:
>If my table has a column of 200px and I insert an image of 300px the
column
expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

Also, when I do "Start Without Debugging" do I then see what the site
will
look like in if I were actually downloading the site?

Hi...
Add Css to the cells .... for instance cellStyle...
.cellStyle
{

}
and ofcourse... add this style in stylesheet...
.cellSyle img
{
width:200px;
}

suppose to solve your problem

Thanks
Masudur
http://munnacs.110mb.com

Jun 25 '07 #6
great answer, thanks

maybe you can tell me how to drag a webcontrols table from the tool box to
one of the cells so I can select it while in "Source" display.

thanks again
"Göran Andersson" <gu***@guffa.comwrote in message
news:OD**************@TK2MSFTNGP03.phx.gbl...
active wrote:
>If my table has a column of 200px and I insert an image of 300px the
column expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

The default behaviour for a table is to adapt itself to the contents of
the cells. If you don't want this behaviour, you have to defeat it by
specifying an exact size for every column and row, and make sure that the
sizes add up exactly to the size of the table.

Use the overflow style in css to determine what should happen when the
content is larger than the cell. For example: overflow:hidden; to clip the
content.
>Also, when I do "Start Without Debugging" do I then see what the site
will look like in if I were actually downloading the site?

That depends on what you have chosen as default browser in VS. If you are
viewing it inside VS, there is naturally some differences from viewing it
in a browser, eventhough it uses the same rendering control as IE.

--
Göran Andersson
_____
http://www.guffa.com

Jun 25 '07 #7
I meant drag and be able to set properties in Design mode -- not in Source
mode

" active" <ac**********@a-znet.comwrote in message
news:OV*************@TK2MSFTNGP04.phx.gbl...
great answer, thanks

maybe you can tell me how to drag a webcontrols table from the tool box
to one of the cells so I can select it while in "Source" display.

thanks again
"Göran Andersson" <gu***@guffa.comwrote in message
news:OD**************@TK2MSFTNGP03.phx.gbl...
> active wrote:
>>If my table has a column of 200px and I insert an image of 300px the
column expands to the image size.

Can I make the column widths firm?

Cut off the image, rescale it or have H scroll bars would do.

Any suggestions?

The default behaviour for a table is to adapt itself to the contents of
the cells. If you don't want this behaviour, you have to defeat it by
specifying an exact size for every column and row, and make sure that the
sizes add up exactly to the size of the table.

Use the overflow style in css to determine what should happen when the
content is larger than the cell. For example: overflow:hidden; to clip
the content.
>>Also, when I do "Start Without Debugging" do I then see what the site
will look like in if I were actually downloading the site?

That depends on what you have chosen as default browser in VS. If you are
viewing it inside VS, there is naturally some differences from viewing it
in a browser, eventhough it uses the same rendering control as IE.

--
Göran Andersson
_____
http://www.guffa.com


Jun 25 '07 #8
active wrote:
I meant drag and be able to set properties in Design mode -- not in Source
mode

" active" <ac**********@a-znet.comwrote in message
news:OV*************@TK2MSFTNGP04.phx.gbl...
>great answer, thanks

maybe you can tell me how to drag a webcontrols table from the tool box
to one of the cells so I can select it while in "Source" display.

thanks again
Actually, I can't do that. I can't recall that I have ever done that.
The design mode is quite intuitive, though. You should be able to just
drag and drop the table where you want it.

--
Göran Andersson
_____
http://www.guffa.com
Jun 25 '07 #9

"Göran Andersson" <gu***@guffa.comwrote in message
news:uX**************@TK2MSFTNGP04.phx.gbl...
active wrote:
>I meant drag and be able to set properties in Design mode -- not in
Source mode

" active" <ac**********@a-znet.comwrote in message
news:OV*************@TK2MSFTNGP04.phx.gbl...
>>great answer, thanks

maybe you can tell me how to drag a webcontrols table from the tool box
to one of the cells so I can select it while in "Source" display.

thanks again

Actually, I can't do that. I can't recall that I have ever done that. The
design mode is quite intuitive, though. You should be able to just drag
and drop the table where you want it.

--
Göran Andersson
_____
http://www.guffa.com

I made another app just to try it and you are right it works OK there.

Something funny about my real app.

I'll keep looking.
thanks

Jun 25 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Steve Sabljak | last post by:
I seem to having a little trouble getting a table to display correctly in both msie and firefox. I want to set the table and column widths in pixels, and have some cell padding too. The table...
3
by: A Clark | last post by:
I have a subform that displays a datasheet. There are a couple of different queries that can be displayed in the datasheet. The queries are available in a combo box on the main form. The problem...
5
by: nimdez | last post by:
Hi, I am working on an existing code base in which a lot of data displayed to the user is formatted in tables. Most tables are printed row-by-row using printf() with "%s" print conversion...
3
by: bismarkjoe | last post by:
Hello, I am trying to set the widths on the columns of a DataGrid component, and I'm not sure if I'm doing it correctly. My code is below: //load some inital data table = db.GetDataTable(...
2
by: Richard Markus | last post by:
How can I detect in code when a user has resized a column in a listview control? Thanks for the help! Richard
5
by: Steve Bugden | last post by:
Hi, I would like to set the column widths in the ASP.NET GridView control at runtime I have tried the following: http://msdn2.microsoft.com/en-us/library/ms178296.aspx Which uses the...
4
by: Chuck | last post by:
I'm setting the column with for a gridview (25+- columns) and have paging turned on. When the gridview is first displayed, the column widths are all set to the default. But after paging to...
4
by: Markus Ernst | last post by:
Hi Looking for a possibility to get separate tables rendered with common column widths, I was surprised to see that this code validates: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"...
2
by: Midsomer | last post by:
Hi. I have an Access database with a form containing 4 datasheets and I allow the user to change column widths. On closing the form, a routine is fired that saves each column width to an INI file....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.