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? 9 1158
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*******@yaho o.yabbadabbadoo .comwrote in
message news:9C******** *************** ***********@mic rosoft.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?
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
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
thanks
"Masudur" <mu*****@gmail. comwrote in message
news:11******** *************@q 75g2000hsh.goog legroups.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
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.co mwrote in message
news:OD******** ******@TK2MSFTN GP03.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
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******** *****@TK2MSFTNG P04.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.co mwrote in message
news:OD******** ******@TK2MSFTN GP03.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
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******** *****@TK2MSFTNG P04.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
"Göran Andersson" <gu***@guffa.co mwrote in message
news:uX******** ******@TK2MSFTN GP04.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******* ******@TK2MSFTN GP04.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 displays correctly
in standards compiance mode in firefox, but not msie, where the
padding is added on to the column widths.
the table size is always correct, but the column widths are not what I
expect them to be.
If I change the column widths to...
|
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 I am
having is that when I change the query all the column widths remain
the same. This doesn't look very good. I can't figure out a way to
set the column widths.
I have tried..
Subform.controls(Name of Column).columnwidth = IntColumnWidth
|
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 specification for
each column (e.g. printf(%10s %25s %15s\n", pszCol1, pszCol2,
pszCol3)). My problem is that when a string is longer the column's
width, it overflows the column and takes the table out of alignment.
What I want it to do is word-wrap...
|
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( "SELECT 'Task' AS 'Type', title AS 'Title',
IFNULL(u.name, 'Nobody') AS 'Assigned To' FROM tasks t LEFT JOIN
users u ON t.assigned_to=u.user_id LIMIT 0, 30" );
grid.ReadOnly = true;
|
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
| |
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 following code on a button:
Protected Sub Button1_Click(ByVal sender As Object, _
|
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 another page, the widths are set as
they should be.
Going back to page one, the widths are still correct.
Not a clue what's going on here!
|
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"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><title>Table test</title></head>
<body>
|
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.
When the form is opened, the INI file is read and sets up the column
widths for the user.
Works well, but there is a slight delay on closing the form, so I would
like to detect if any column widths have been changed and save them
only if...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |