homepage Welcome to WebmasterWorld Guest from 54.166.173.147
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Problem:Table after static div in relative container
JohnVi




msg:4643271
 1:54 pm on Feb 7, 2014 (gmt 0)

Hello people,

I ve recently came across a problem :

inside a relative container is a static div followed by a table(containing other static divs). And I cant get the first static div(from a table) to border exactly after the static div that is first in the relative container. I need to have it possitioned without white space between them. Can anyone help me ? :/

code:



body {
background-color: #ffffff;
height:100%;
margin=0px;
padding=0px;
}
*{
margin=0px;
padding=0px;

}
#cont {
position: relative;
left: 0%;
width: 100%;
z-index: 1;
top: 130px;
min-height: 100%;
}
table {
border: none;
margin: 0;
}

[i57.tinypic.com ]

[edited by: JohnVi at 2:58 pm (utc) on Feb 7, 2014]

 

brandozz




msg:4643272
 1:58 pm on Feb 7, 2014 (gmt 0)

Your CSS is incorrect

change
margin=0px
padding=0px

to
margin: 0;
padding: 0;

JohnVi




msg:4643274
 2:08 pm on Feb 7, 2014 (gmt 0)

I did. No change..I would also like to add that the divs inside table are positioned exactly as I wanted them. But the relation between first non-table div and 1st table div is one big unknown to me it seems.

brandozz




msg:4643285
 2:38 pm on Feb 7, 2014 (gmt 0)

Can you post your html? The link to the jpg in your post gives a 404.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved