Coding help

sumitmehta

New Member
Messages
215
Reaction score
1
Points
0
OK........
Make a HTML page and paste the following code into it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Untitled Page</title>
<link href="StyleSheet.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table id="myTable">
<tr>
<td width="50%">
Link1</td>
<td width="50%">
Link4</td>
</tr>
<tr>
<td width="50%">
Link2</td>
<td width="50%">
Link5</td>
</tr>
<tr>
<td width="50%">
Link3</td>
<td width="50%">
Link6</td>
</tr>
</table>

</body>
</html>

Now make a StyleSheet.css file and paste the following code into it. Remember to place the stylesheet file in the same folder as that of your html file.

#myTable
{
width: 346px;
height: 139px;
border: solid 1px black;
position:absolute;
left: 40px;
top: 100px;
}

Now if you look at the code in css file, you will see that you can play with left/top attributes to change the location of the table, just like we do absolute positioning of controls in VB or Java.

I hope the above helps.
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
woah...after looking at your webpage, I can tell it got very screwed up.

in your HTML, take the div: '<div class="bodyRight">'
and all of its subdivs and move it before
'<div class="footer">'

I think that should help
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
my bad, I meant right before
like:
before
HTML:
<div class="bodyLeft">
<div id="body">
<h2/>
<div class="home">
<div class="homeAff">
</div>
<div class="bodyRight">
</div>
</div>
</div>
<div class="footer">
</div>
</div>
<div class="bannerAd">
</div>

after
HTML:
<div class="bodyLeft">
<div id="body">
<h2/>
<div class="home">
<div class="homeAff">
</div>
</div>
</div>
[COLOR="Red"]<div class="bodyRight">
</div>[/COLOR]
<div class="footer">
</div>
</div>
<div class="bannerAd">
</div>
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
Nope it did not work, answer my PM please? I also reverted the file back to the way it was before the change.
 
Last edited:

Jose Magsino

New Member
Messages
53
Reaction score
0
Points
0
Hello, here is my solution which can be viewed in http://www.kadjo.org/test2/test2.html

The from the original code (I've copied this from diabolo)
HTML:
<div class="bodyLeft">
<div id="body">
<h2/>
<div class="home">
<div class="homeAff">
</div>
<div class="bodyRight">
</div>
</div>
</div>
<div class="footer">
</div>
</div>
<div class="bannerAd">
</div>
To this one :

HTML:
<DIV class=header>
<DIV class=logo><H1>MiBux</H1></DIV>
<DIV class=menu>
</DIV> <!-- menu -->
</DIV> <!-- header -->

<DIV class=mainWrapper>
<DIV class=bodyWrapper1>
<DIV class=bodyWrapper2>
<DIV class=bodyWrapper3>

<DIV class=bodyLeft>
<DIV id=body>
<H2></H2>
<DIV class=home>
<DIV class=homeAff>
</DIV> <!-- homeaff -->
</DIV> <!--home-->
</DIV> <!--body-->
</DIV>  <!-- bodyleft -->
<DIV class=bodyRight>
<DIV id=panel>
</DIV> <!-- panel  -->
</DIV> <!-- bodyright-->
<DIV class=bannerAd>
</DIV>  <!-- banner ad-->
<DIV class=headerStats>
</DIV> <!-- headerstats -->

<DIV class=footer>
<DIV class=copyright>
</DIV> <!-- copyright-->
</DIV> <!-- footer-->

</DIV> <!--bodywrapper3 -->
</DIV> <!--bodywrapper2 -->
</DIV> <!--bodywrapper1 -->
</DIV> <!--mainwrapper -->
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
THANK YOU! It worked! Now can you tell me why in the box it does not have black writing, but it has white writing on seem when it is highlighted?

And why does it log me out when I click on another link on the site?

And why does it do this when you navigate to a new page:http://img205.imageshack.us/img205/709/whydi5.png ? Why does it not just fit it into the page or make that part bigger?
 
Last edited:

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
And why does it log me out when I click on another link on the site?
something wrong with the cookies probably


And why does it do this when you navigate to a new page:http://img205.imageshack.us/img205/709/whydi5.png ? Why does it not just fit it into the page or make that part bigger?

change from this
Code:
homeAff, .homeAdv {components.css (line 498)background-color:#363636;
border:1px dotted #1E1E1E;
height:110px;
margin:0px 5px 13px;

to this
Code:
homeAff, .homeAdv {background-color:#363636;
border:1px dotted #1E1E1E;
margin:0px 5px 13px;


Also, I do know that because the table width="570" leaves a black space, maybe you should make it 100% to fill up that black space.
<table width="570" cellspacing="0" cellpadding="0" class="contentareaborder">
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
Thanks a lot again. How would I fix the cookie problem? It works on the default skin, but on the skin I made here it does this.

Also, can you tell me why in the box it does not have black writing, but it has white writing on seen only when it is highlighted?
 
Last edited:

Jose Magsino

New Member
Messages
53
Reaction score
0
Points
0
Hi MicroTechXP,
I was wondering where in your css definition is this contentareaborder and the contentarea. This classes were referred to by the following tags in you html.

HTML:
<DIV class=homeAff>
<TABLE class=contentareaborder cellSpacing=0 cellPadding=0 width=570>
  <TBODY>
.
.
.
<TABLE class=contentarea height="100%" cellPadding=2 width="100%">
.
.
.
</TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>

Thus for the sake of viewing the text that you've refered to i'ved revised the table tag using the code below:

HTML:
<TABLE class=contentareaborder cellSpacing=0 cellPadding=0 width=570 style='color:black'>

Maybe if we could just know whats behind the css class defined contentareaborder and contentarea. It will give us the reason why its not displaying as expected.

HTH.

jose magsino
 

MicrotechXP

New Member
Messages
7,644
Reaction score
0
Points
0
I fixed the text! :D Now the only problem is the cookies issue. Why does it log me out instantly after I go to another page?
 

diabolo

Community Advocate
Community Support
Messages
1,682
Reaction score
32
Points
48
we would need the code that sets up the cookie in the first place.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
yeah, it could be wrong with the script that stores the cookie. or your computer that blocks the cookie.
 
Top