473,385 Members | 1,647 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,385 software developers and data experts.

Issues w/ Div and css rendering when window is resized

Hello All,
I'm trying to avoid use of tables for layout purposes. So I have the
layout positioned using css and <div>. When the browser window is
resized by clicking & dragging the mouse, the text doesn't transform
gracefully as it would if I were to use tables for layout.

Any way to fix this, and continue to use DIV or is the only way to go
back to tables?

Browsers used: Internet Explorer and Firefox

HTML CODE:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/str*ict.dtd">
<html>
<head>
<title>For Non-tabular matter</title>
<style type="text/css">
..equalboxes {border:1px solid #31659C;width:46%;float:left; margin:
2px; background-color:#F2F8FD}
..HomeSearchD1 {border:0px solid black;width:30%;float:left;
height:21px; margin-left: 0 px; margin-top: 2px;

background-color:#FFFFFF;display:block;}
..HomeSearchD2 {border:0px solid black;width:70%;float:left;
height:21px; margin-left: 0 px; margin-top: 2px;

background-color:#FFFFFF;display:block;}
..FontSectionHead12Pt
{font-family:Arial;font-size:12pt;font-weight:bold;}
..Font10Pt {font-family:Arial;font-size:10pt;}
..FieldFont {font-family:Verdana;font-size:10pt;}
..LabelFont {font-family:Verdana;font-size:10pt;}
..HomeSearchLabel {border:0px solid black;width:36%;float:left;
margin-top: 3px; margin-left: 0 px; display:block;}
..HomeSearchField {border:0px solid black;width:63%;float:left;
margin-left: 0 px; margin-top: 5px;

margin-left:3px;display:block;}
..equalboxes2 {border-top:1px solid black; border-bottom: 1px solid
black; width:33%;float:left;}
..tableInline{display:table; width:100%; border: 1px solid green; }
..tableRow{display:table-row;}
..tableCell{display:table-cell; border: 1px solid green; }
</style>
</head>
<body>
<div id="HomeSearch" class="equalboxes">
<div class="HomeSearchD1"><span class="FontSectionHead12Pt">Section
Heading</span></div>
<div class="HomeSearchD2" align="center"><span class="Font10Pt"><a
href="#">Link</a> | <a

href="#">Link</a></span></div>
<div class="HomeSearchLabel LabelFont" align="right">Label 1:</div>
<div class="HomeSearchField FieldFont" align="left">&nbsp;<input
type="text"></div>
<div class="HomeSearchLabel LabelFont" align="right">Label 2:</div>
<div class="HomeSearchField FieldFont" align="left">&nbsp;<Select>
<option selected>Any</option>
<option >Option Value</option>
<option >Option Value</option>
</select></div>

<div class="HomeSearchLabel LabelFont" align="right">Label 3:</div>
<div class="HomeSearchField FieldFont" align="left">&nbsp;<select
name="select6">
<option selected>Any</option>
<option >Option Value</option>
<option >Option Value</option> </select></div>

<div class="HomeSearchLabel LabelFont" align="right">Label 4:</div>
<div class="HomeSearchField FieldFont" align="left">&nbsp;<select
name="select3">
<option selected>Any</option>
<option >Option Value</option>
<option >Option Value</option>
</select></div>
<div class="HomeSearchLabel LabelFont" align="right">Label 5:</div>
<div class="HomeSearchField FieldFont" align="left">&nbsp;<select
name="select4">
<option selected>Any</option>
<option >Option Value</option>
<option >Option Value</option>
</select></div>
<div class="HomeSearchLabel LabelFont" align="right">Label 6:</div>
<div class="HomeSearchField FieldFont" align="left">&nbsp;<select
name="select8">
<option selected>Any</option>
<option >Option Value</option>
<option >Option Value</option>
</select></div>
<div class="HomeSearchLabel LabelFont" align="right"></div>
<div class="HomeSearchField FieldFont" align="left"><input
type="submit" name="Submit"

value="Search"></div>
</div>
</div>
<div class="equalboxes">test </div>
<div class="equalboxes">test</div>
</body>
</html>

Jul 21 '05 #1
0 2266

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

Similar topics

2
by: TR | last post by:
Hi All: I have a simple test GUI that has 2 panels (a left side and a right side), and each panel is displaying an image. The left panel has a hardcoded size of (600,400) using the Dimension()...
4
by: listaction | last post by:
folks, sorry for reposting..but can some one help me with...
4
by: Steve | last post by:
Hi, I'm opening a small window with window.open. I have a textarea there, and I want it to expand to fit the window as it's resized. How is this possible? Thanks, Steve
2
by: DaVBGuy | last post by:
I've created a webform and I'm using a couple textboxes. When I browse the form in IE, the textboxes are sized the way I laid them out in my IDE...one being distinctly larger than the other. When...
0
by: Jeff | last post by:
I am making a custom control that displays images, allows zooming in and out, and can fit the image to the control. The way I am handling all of this is probably not best, but I was looking for a...
10
by: Robert | last post by:
I have an app that was originally 1.1, now migrated to 2.0 and have run into some sporadic viewstate errors...usually saying the viewstate is invalid, eventvalidation failed or mac error. My web...
8
by: Viken Karaguesian | last post by:
Hello all, I'll start with this question: Can I assign an ID *and* a CLASS to a DIV? I am under the impression that you can. I'm having a problem that I can't seem to figure out. Some...
1
by: Lucien Dol | last post by:
Hi all, Can someone help me with this, please? I've got a user control that (amongst other controls) contains a textbox. The textbox has its Anchor property set to "Left, Top, Right", meaning...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.