Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » Padding problem (firefox/IE)


Padding problem (firefox/IE)

Reply
  #11 (permalink)  
Old 08-23-10, 02:09 PM
Millmi Millmi is offline
Newbie Coder
 
Join Date: Aug 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
omigad o_o thanks thanks thaaaanks! :3 hmm.. been using <span> in almost five years now - so haven't thought about it. but okay, time to learn and get better!

And the fixed code looks sooo much better , thanku very much!
I have to think about this in further time ^-^ close all my tags and start learning about div!
Reply With Quote
  #12 (permalink)  
Old 08-23-10, 03:35 PM
Golith Golith is offline
Newbie Coder
 
Join Date: Jun 2010
Posts: 87
Thanks: 6
Thanked 1 Time in 1 Post
Well i had some fun anyway .. i like the look of your site

This is something i would do instead .. i did notice some adjustments that would be required
although the planning allows for adding left or right nav bars and so on to allow for extra <div></div>

HTML Code:
<html>
<head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<title>Amina SK fotografi</title>

<!--
Add your CSS file in details in here or relative location to the master css file
a {font-family:arial;border-bottom: 0px #ffffff}
a:link{text-decoration: none}
a:hover{font-variant: monospace;border-bottom: 0px solid #ffffff; color: #ffffff!important;font-family: "Arial"} 
-->

</head>

<body background="http://i34.tinypic.com/a2ewyx.png" text="#7B5354">

<!-- sets up the middle are for the master table -->

<!-- commence the master table -->

<table align="center" style="width:900px;margin-top:20px;margin-bottom:20px;background-color:#ffffff;" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table width="805" border="0" cellpadding="0" cellspacing="0" style="margin-top:1px;background-color:#606060;border-bottom:1px solid black">
<tr style="height:47px">
<td width="15">&nbsp;</td>
<td width="500" valign="middle" style="text-align:left">  
<a href=""><img style="margin-top:6px" border="0" src="http://i35.tinypic.com/34eqq1j.png" width="890" height="307" alt="" title="" /></a></td>
</table>
<!-- adding the menu bar -->
<table width="855" border="0" cellpadding="0" cellspacing="0" style="background-color:#000000">
<tr style="height:20px">
<td style="border-left:none" width="50"></td>
<td <a href="index.html"><font color="#ffffff" face="baskerville old face">Hem</font></a></td>
<td <a href="nyheter.html"><font color="#ffffff" face="baskerville old face">Nyheter</font></a></td>
<td <a href="galleri.html"><font color="#ffffff" face="baskerville old face">Galleri</font></a></td>
<td <a href="information.html"><font color="#ffffff" face="baskerville old face">Information</font></a></td>
<td <a href="gastbok.html"><font color="#ffffff" face="baskerville old face">G?stbok</font></a></td>
<td style="border-right:none" width="50"></td>
</tr>
</table>
<div>Horse info</div> (could be used to give a dynamic feel so pages dont continuly reload when you select a different breed
</table>
</body>
</html>
__________________
Its My script and I'll if I want to
www.cictradinggroup.com.au
Reply With Quote
  #13 (permalink)  
Old 08-24-10, 06:21 AM
UnrealEd's Avatar
UnrealEd UnrealEd is offline
Community Liaison
 
Join Date: May 2005
Location: Antwerp, Belgium
Posts: 3,165
Thanks: 4
Thanked 25 Times in 25 Posts
In this case I wouldn't use tables, completely obsolete. Millmi only needs 2 or 3 divs to position the entire contents of the site. A table is a little overkill.
__________________
"Good judgement comes from experience, and experience comes from bad judgement." - Fred Brooks

Reply With Quote
  #14 (permalink)  
Old 08-24-10, 10:45 AM
Millmi Millmi is offline
Newbie Coder
 
Join Date: Aug 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
good idea x) but think I'm staying with the div :3 al ready using tables at two of the pages in the site (here and here) . but thanks !

uhm, tried the other code, the one you, Golith, did before? x) the areas are still stretching.. don't think it worked. :/ I have it on http://aminask.se/test2.html :3

Last edited by Millmi; 08-24-10 at 10:54 AM.
Reply With Quote
  #15 (permalink)  
Old 08-25-10, 06:18 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Try it like this:
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Amina SK fotografi</title>
<STYLE TYPE="text/css">
.container {
 position:absolute;
 left:137px;
 width: 805px;
}
a {
 font-family:arial;
 border-bottom: 0px #ffffff;
}
a:link {
 text-decoration: none;
}
a:hover {
 font-variant: monospace;
 border-bottom: 0px solid #ffffff;
 color: #ffffff!important;
 font-family: "Arial";
}
.baskerville {
 background-image:url('http://i35.tinypic.com/34eqq1j.png');
 padding-top: 278px;
 padding-bottom: 5px;
 color: #7B5354;
 font-face:'baskerville old face';
 text-align:center;
}
.baskerville2 {
 padding-top: 22px;
 height: 56px;
 background-image:url('http://i37.tinypic.com/e1cjsp.png');
}
.nav {margin-right:100px;}
.bottom_pics {
 background-image:url('http://i37.tinypic.com/1hfd4g.png');
 color: #7B5354;
 text-align:center;
}
</STYLE>
</head>
<body text="#7B5354" background="http://i34.tinypic.com/a2ewyx.png">

<div class="container">
 <div class="baskerville">
  <a class="nav" href="index.html">Hem</a>
  <a class="nav" href="nyheter.html">Nyheter</a>
  <a class="nav" href="galleri.html">Galleri</a>
  <a class="nav" href="information.html">Information</a>
  <a href="gastbok.html">G?stbok</a>
 </div>
 <div class="baskerville baskerville2">A M I N A &nbsp;&nbsp; S K</div>
 <div class="bottom_pics">
  <img src="http://i41.tinypic.com/2cmvoyr.gif" />
  <br />
  <img src="http://i33.tinypic.com/24npoug.png" />
  <br />
  <i><font color="#000000" face="trebuchet ms" size="1">Patriarch från RIKS 2 augusti 2010</font></i>
  <br /><br />
 </div>
</div>

</body>
</html>
__________________
Jerry Broughton
Reply With Quote
  #16 (permalink)  
Old 08-26-10, 08:47 AM
Millmi Millmi is offline
Newbie Coder
 
Join Date: Aug 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Woow! it worked! and the css and div looks really good! thankuu ! Cx

Last edited by Millmi; 08-26-10 at 08:51 AM.
Reply With Quote
  #17 (permalink)  
Old 08-26-10, 09:38 AM
Golith Golith is offline
Newbie Coder
 
Join Date: Jun 2010
Posts: 87
Thanks: 6
Thanked 1 Time in 1 Post
Yep .. I'm glad I'm a newbie at this .. was good to see a professional layout instead of my suggestion. my website is all table based and used it as a template to start this off. Seeing Millmis' suggestion gives me a new lease on a re-write eventually of my own site. just like UNI .. everytime you get a wrong answer means your one step closer to the correct one !!
__________________
Its My script and I'll if I want to
www.cictradinggroup.com.au
Reply With Quote
  #18 (permalink)  
Old 08-26-10, 02:44 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Thank-you for the complements.
I made a couple more changes to the CSS and HTML.
Fixed font-face to font-family and removed the last <font></font> element.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Amina SK fotografi</title>
<STYLE TYPE="text/css">
body {
 color: #7B5354;
 background-image:url("http://i34.tinypic.com/a2ewyx.png");
}
.container {
 position:absolute;
 left:137px;
 width: 805px;
}
a {font-family:arial;}
a:link {text-decoration: none;}
a:hover {
 font-variant: monospace;
 color: #ffffff!important;
 font-family: "Arial";
}
.baskerville {
 background-image:url('http://i35.tinypic.com/34eqq1j.png');
 padding-top: 278px;
 padding-bottom: 5px;
 color: #7B5354;
 font-family: "baskerville old face";
 text-align: center;
}
.baskerville2 {
 padding-top: 20px;
 height: 56px;
 font-size: 1.5em;
 font-weight: bold;
 background-image:url('http://i37.tinypic.com/e1cjsp.png');
}
.nav {margin-right:100px;}
.bottom_pics {
 background-image:url('http://i37.tinypic.com/1hfd4g.png');
 color: #7B5354;
 text-align: center;
}
.footer_text
{
 font-family: "trebuchet ms";
 font-size: .7em;
 font-style: italic;
 }
</STYLE>
</head>
<body>

<div class="container">
 <div class="baskerville">
  <a class="nav" href="index.html">Hem</a>
  <a class="nav" href="nyheter.html">Nyheter</a>
  <a class="nav" href="galleri.html">Galleri</a>
  <a class="nav" href="information.html">Information</a>
  <a href="gastbok.html">G?stbok</a>
 </div>
 <div class="baskerville baskerville2">A M I N A &nbsp;&nbsp; S K</div>
 <div class="bottom_pics">
  <img src="http://i41.tinypic.com/2cmvoyr.gif" />
  <br />
  <img src="http://i33.tinypic.com/24npoug.png" />
  <br />
  <span class="footer_text">Patriarch från RIKS 2 augusti 2010</span>
  <br /><br />
 </div>
</div>

</body>
</html>
__________________
Jerry Broughton

Last edited by job0107; 08-26-10 at 02:50 PM.
Reply With Quote
  #19 (permalink)  
Old 08-29-10, 04:55 AM
Millmi Millmi is offline
Newbie Coder
 
Join Date: Aug 2010
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
aaw now i don't need to insert the fonts everytime. thaanks!
Reply With Quote
Reply

Bookmarks

Tags
explorer, firefox, internet, pixels


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting to ems spyke01 CSS 0 11-09-07 02:48 PM
another ie problem.... sushi4664 CSS 6 07-14-07 12:46 PM
css help (very simple i think) jcoxy4 CSS 2 06-11-07 02:32 PM
Dumb HTMl Problem [Could be CSS] _net HTML/XHTML/XML 7 05-25-07 04:51 AM
CSS Padding problem. Justin171985 CSS 0 10-28-05 11:05 PM


All times are GMT -5. The time now is 09:13 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.