|
Web design and Programming Discuss website creation and other programming topics. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Do I HAVE to use a table here?
Peace,
Do I HAVE to use a table to achieve the look on the bottom of the page in the blue section with text on one side and the image on the other? http://audiclean.com/beta/index.html In other words how would you do it? PHP Code:
__________________
|
#2
|
||
|
Here is the code from my style sheet
PHP Code:
__________________
|
#3
|
||
|
nope.. you can use a DIV and just position it using css.
Not sure the best way to position it though. On one of my projects I'm using absolute positioning and specifying where I want it via the x/y coordinates. |
#4
|
||
|
I thought so, I'm gonna try it out...
__________________
|
#5
|
||
|
I need to define the image source in the css...
__________________
|
#6
|
||
|
__________________
|
#7
|
||
|
You can put the text in <p> tags or a div and then float the image right.
<p class="paragraphCrap"> BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH BLAH </p> <img src="myIMAGE.gif" class="tvImage"> .tvImage { float: left; } .paragraphCrap { float: right; }
__________________
|
#8
|
|||
|
Quote:
Code:
<div id="someContainer"> <p id="paragraph"> <ol> <li>Clinically proven efficacy</li> <li>Does not irritate the delicate ear canal</li> <li>Naturally sourced ingredients</li> <li>Easy to use</li> <li>Safe for adults and children</li> </ol> </p> <a href="/beta/tvc.html"><img src="/images/tv-ad.gif" alt="TV Ad Picture" id="tvad">Click Here for the TV Ad!</a> </div> CSS: #someContainer{position: relative;} #tvad { position: absolute; left: 201px; } #paragraph { position: absolute; width:200px; left: 0px; }
__________________
Last edited by atholon; 02-09-2009 at 06:59 PM. |
#9
|
||
|
The problem with absolute positioning and floating is that it will not expand a div or wrap the text inside the div.
You have to force the div to be a certain height. In some cases tables are the best option. You just shouldn't use them all over the place (what a mess).
__________________
Last edited by atholon; 02-09-2009 at 06:58 PM. |
#10
|
||
|
the positioning was only for the tv ad image
And there is no text for the tv ad. Its just a picture that links to the tv ad page
__________________
|
#11
|
||
|
Oh Just looked at it really fast.
__________________
|
#12
|
||
|
But what I get from what you are saying is that although I could do the same thing without tables, it is ok to use them in this instance?
__________________
|
#13
|
||
|
Yeah. Sometimes the CSS isn't worth it.
Just try to use them for the right purpose (displaying data) If you look at my site you can see that I use them in a few places. Not all over though.
__________________
|
#14
|
||
|
Thank you man.
Now I'm wondering how to deliver it using php.
__________________
|
#15
|
||
|
That is trickier
__________________
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Table | EDGE | Sigs and Graphics | 32 | 06-10-2005 11:03 PM |
Table Width | Guest | phphq.Net Forums | 1 | 06-01-2005 03:11 PM |
one for the supper table | bigsmellyfart | Humor & Jokes | 1 | 04-27-2005 08:59 AM |
I can´t change the with of the table | Borja | phphq.Net Forums | 1 | 12-07-2004 05:27 PM |
table transparency? | Se7eN | Web design and Programming | 2 | 05-08-2003 02:52 PM |