•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 332,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,162 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 361 | Replies: 7 | Solved
![]() |
•
•
Join Date: Feb 2008
Posts: 19
Reputation:
Rep Power: 1
Solved Threads: 0
Good day,
I took the plunge and broke away from doing lay-out with tables and decided to experiment with layers. My coding has gone well and I like the results - except for one thing.
Can anyone offer a good resource for appropriate design techniques if a user decides to increase the size of the text in their browser?
I have this nice looking web page and everything goes to crap if it gets resized. Searches I have executed in Google don't seem to deal with the issue. The closest I have come to a solution is "...know your audience and plan for a size they will accept to begin with."
Thanks in advance.
I took the plunge and broke away from doing lay-out with tables and decided to experiment with layers. My coding has gone well and I like the results - except for one thing.
Can anyone offer a good resource for appropriate design techniques if a user decides to increase the size of the text in their browser?
I have this nice looking web page and everything goes to crap if it gets resized. Searches I have executed in Google don't seem to deal with the issue. The closest I have come to a solution is "...know your audience and plan for a size they will accept to begin with."
Thanks in advance.
Try a search on google on
CSS Liquid Layouts.
I do not have much idea about that. But it is possible.
CSS Liquid Layouts.
I do not have much idea about that. But it is possible.
Websitewiz.co.nr
Check out my Old website. Designed it at the age of 12
Check out my Old website. Designed it at the age of 12
•
•
Join Date: Feb 2008
Posts: 19
Reputation:
Rep Power: 1
Solved Threads: 0
Is it possible to use div tags, using relative positioning, to have two columns so that the top line of two blocks line up?
I'm coding an online version of a c.v. Using a table scheme, I could achieve this with coding a row like this:
This would display the time served at a company in a new column, lining up with the top line of the first column.
In CSS I have the following code:
The desired result is 67% of what I want. The years display one line below the information provided in the description instead of at the top, but to the right where I want it.
I don't think positioning with absolutes is viable because the height of the blocks for describing a job will vary on the left. As well, there is text above this area that would make coding absolutes very difficult to achieve.
I'm coding an online version of a c.v. Using a table scheme, I could achieve this with coding a row like this:
html Syntax (Toggle Plain Text)
<tr valign="top"> <td width="85%"> <p class="c5"> Job Title </p> <p class="c4"> Company and City </p> <p class="c4"> Job Description and other details </p> </td> <td width="15%" nowrap="nowrap"> <p class="yrs"> Dates there </p> <p class="c4"> <br /> </p> </td> </tr>
This would display the time served at a company in a new column, lining up with the top line of the first column.
In CSS I have the following code:
HTML Syntax (Toggle Plain Text)
<div style="position: relative; background-color: blue; left: 0px; top: 0px; width: 80%; height: automatic; z-index: 4"> <p class="c5"> Company </p> <p class="c4"> Job Title </p> <p class="c4"> Description. (This can be quite long and is a key factor for making the height automatic since </p> </div> <div style="position: relative; background-color: blue; left: 0px; top: 5px; width: 20%; margin-left: 80%; height: automatic; z-index: 4"> <p class="yrs"> yyyy - yyyy </p> </div>
The desired result is 67% of what I want. The years display one line below the information provided in the description instead of at the top, but to the right where I want it.
I don't think positioning with absolutes is viable because the height of the blocks for describing a job will vary on the left. As well, there is text above this area that would make coding absolutes very difficult to achieve.
are you displaying tabular information ?
it very much looks like it.
one thing is tables are NOT bad. But are simply bad when using them for entirely different purposes than they were created for.
If you have tabular data use tables.
it very much looks like it.
one thing is tables are NOT bad. But are simply bad when using them for entirely different purposes than they were created for.
If you have tabular data use tables.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
•
•
Join Date: Feb 2008
Posts: 19
Reputation:
Rep Power: 1
Solved Threads: 0
•
•
•
•
are you displaying tabular information ?
it very much looks like it.
one thing is tables are NOT bad. But are simply bad when using them for entirely different purposes than they were created for.
If you have tabular data use tables.
I think you need to look at my message again. Yes, I have table data in the message as an example of how I would code in tables what I am trying to achieve with CSS. I want to know if there is a way to achieve the same results using CSS.
Last edited by dwlamb_001 : 10 Days Ago at 12:03 pm.
well i am almost certain you cant use relative positioning with the technique you are using but i have frequently used the opening div as a placeholder for inner relative elements.
E.g if you move your css into an outer div and wrap what you already have. (without moving the position:relative information) you get.
im still not 100% sure what your after. Hopefully that helps.
E.g if you move your css into an outer div and wrap what you already have. (without moving the position:relative information) you get.
<div style="float:right;width:20%;"> <div style="position:relative;background-color:blue;left:0px;top:5px;z-index:4;"> <p class="yrs">yyyy - yyyy</p> </div> </div> <div style="width: auto;margin-right:20%;"> <div style="position:relative;background-color:blue;left:0px;top:0px;z-index: 4"> <p class="c5">Company</p> <p class="c4">Job Title</p> <p class="c4">Description. (This can be quite long and is a key factor for making the height automatic since</p> </div> </div>
im still not 100% sure what your after. Hopefully that helps.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb HTML and CSS Marketplace
Other Threads in the HTML and CSS Forum
- Previous Thread: HTML code for a freight calculator?
- Next Thread: Smaller image to larger Image on rollover


Linear Mode