Hi, I'm just beginning CSS based web development and although I've been
bashing away at it since yesterday, I'm still stuck with positioning
things on pages.
I'm trying to make (in table-speak) two (or possibly more later) rows
each of three columns, with a table width 60% of the width of the
screen with a 10% left hand margin. I've been bashing away at the CSS
for a while now, and I'm almost there (except I can't get the top-edge
of the elements in each row to line up properly), but my main problem
is that as soon as I resize the fonts in my web-browser, the HTML
elements can start breaking out of the CSS boxes - and then HTML
elements start overlapping other HTML elements.
For example, here is what I've got so far: http://www.dingnet.org.uk/~saxm/css_problem/p1.html
and the CSS is at: http://www.dingnet.org.uk/~saxm/css_problem/p1.css
If you try increasing font sizes, you'll see the problem.
I really want the CSS boxes to be the same size as the HTML elements
they enclose, except in the case of column widths, where the columns
should be the same width as the largest HTML element in that column.
Does anyone have any tips on how I could go about doing this?
Cheers,
Steve 2 1494
To further the education of mankind, sa*****@dingnet .org.uk vouchsafed: Hi, I'm just beginning CSS based web development and although I've been bashing away at it since yesterday, I'm still stuck with positioning things on pages.
I'm trying to make (in table-speak) two (or possibly more later) rows each of three columns, with a table width 60% of the width of the screen with a 10% left hand margin. I've been bashing away at the CSS for a while now, and I'm almost there (except I can't get the top-edge of the elements in each row to line up properly), but my main problem is that as soon as I resize the fonts in my web-browser, the HTML elements can start breaking out of the CSS boxes - and then HTML elements start overlapping other HTML elements.
For example, here is what I've got so far: http://www.dingnet.org.uk/~saxm/css_problem/p1.html
and the CSS is at: http://www.dingnet.org.uk/~saxm/css_problem/p1.css
If you try increasing font sizes, you'll see the problem.
I really want the CSS boxes to be the same size as the HTML elements they enclose, except in the case of column widths, where the columns should be the same width as the largest HTML element in that column. Does anyone have any tips on how I could go about doing this?
If you really need a table-layout, use a table.
If what you meant in the last paragraph is something like '...the columns
should be the same width as the largest of the columnar content widths',
this can be accomplished by determining the width in em of said content and
applying it to all relevant containers.
--
Neredbojias
Infinity has its limits. sa*****@dingnet .org.uk wrote: I'm trying to make (in table-speak) two (or possibly more later) rows each of three columns, with a table width 60% of the width of the screen with a 10% left hand margin. I've been bashing away at the CSS for a while now, and I'm almost there (except I can't get the top-edge of the elements in each row to line up properly), but my main problem is that as soon as I resize the fonts in my web-browser, the HTML elements can start breaking out of the CSS boxes - and then HTML elements start overlapping other HTML elements.
Search for "two column css". You get lots of links. If you try increasing font sizes, you'll see the problem.
I really want the CSS boxes to be the same size as the HTML elements they enclose, except in the case of column widths, where the columns should be the same width as the largest HTML element in that column. Does anyone have any tips on how I could go about doing this?
Use ems for width specification, not %. That way the dimensions adapt to
the font size.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Bowen |
last post by:
Hello all. I have been given mock-ups (in static HTML) of some pages
for a site I am working on. The client would like these pages to look
exactly as they do now. The problem is that the content is dynamic, it
comes from a database.
My question -- with CSS (because with HTML tables I don't think it's
possible) how can I make my text "flow" in two columns? eg. If there
are 100 lines of content, I would like 50 to be in the 1st column, and...
|
by: TAM |
last post by:
Hi,
I have redesigned one html page by removing all the tables. You can
see this test page at http://www.ngrain.com/css/home1.htm. Only
home1.htm has been redesigned without tables. Rest of the site uses
tables for layout.
I would appreciate if you can take a look at this page and CSS and
comment on the coding.
|
by: javaguy |
last post by:
I have a data entry web application that is formatted heavily
with tables. Having learned a bit of CSS, I'm hoping to rewrite
this using <div> tags. But I have run into a formatting problem
that keeps me from a solution. I'm hoping for some trick.
Assume that "label_a" is a <label> tag and "INPUT_A" is
an <input> tag. A sample of my current web page is:
<table>
<tr><td>label_a</td><td>INPUT_A</td>
|
by: hiazle |
last post by:
I have a Page that has one left div with id "sidebar", floats left and
has a fixed width of 140px, then another div with id "content", a left
margin of 160px, and a fixed width of 570px.
Here is the CSS:
#news{
background-image: url(images/body-repeat-news.gif);
width: 730px;
padding: 15px;
|
by: fehays |
last post by:
Hello,
I'm having a problem with the css hover effect in IE. I have an <a>
tag with the following CSS:
a.subNavItem {
display:block;
color:#464645;
padding:2px 7px 4px 6px;
font-family:verdana,arial,helvetica,sans-serif;
| |
by: Goofy |
last post by:
Hi People,
Just wondered how you guys deal with the complex issue of CSS Styles for
Complex server controls like the GridView.
I know its a breeze to set up the styles for AlternatingRowStyles etc etc,
but when it comes to styles for column widths, this is going to change for
every grid you have in your application.
Just wondering if anyone bothers with CSS for GridView other than setting
|
by: eastcoastguyz |
last post by:
I'm a newbie to CSS, so be kind. :-)
I have looked at examples of CSS and have not seen this yet. How can
you change the colors of the text in the same word in CSS? For example,
when how can you take the word "infosystems" and make the "info" part
red, and the "systems" part blue? I don't want to have to hard-code
this in HTML which is why I'm looking to CSS to do this. Thanks!
|
by: drum118 |
last post by:
Trying to make some CSS buttons, but they fall apart in Firefox and
IE.
The first set of buttons work fine in IE, but in Firefox they double
in size when mouseover.
The second set is too wide in both IE and Firefox compare to 1st set
of buttons. In Firefox, the button becomes an insert opposite to IE
and will not jump to the link page like it does in IE.
|
by: Marky1124 |
last post by:
Hi,
I am hoping that someone can offer me some advise. I am new to CSS
layouts and I've struggled to produce the screen layout that I
wanted.
Here's my demonstration page:-
http://www.holleydesigns.com/pudo/demo3m.html
My design goals were:
|
by: Jim |
last post by:
Hi,
I have two questions/problems pertaining to CSS horizontal dropdown
menus and am hoping that someone here can help me out.
(1)
I'm having a problem centering the menu. I picked up the code for
this from a tutorial but that menu was flush-left justified. Not what
I want. Subsequent searches on google on how to center yielded a
|
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: 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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
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...
| |