Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS HELP with positioning and unordered lists

  • This topic is empty.
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #39733
    dominick1
    Member

    hello i am having trouble with two of my unordered lists. the first one is my social media icons in the top right corner. the other is my main nav menu which is centered. they are both in their own divs and both in a header div which is in the main wrap div. when i expand the window size of my browser or make it smaller they both move and do not stay where the should. everything else in the site is perfect but these two elements will just not stay and i am going crazy. PLEASE HELP ME!!!!!!!

    #109535
    Paulie_D
    Member

    Can you mock it up on Codepen or provide a link to a live site?

    #109540
    Kitty Giraudel
    Participant

    Seconded. Please make a reduced test case on CodePen, JSFiddle, Dabblet or whatever. Hard to help without any code.

    #109556
    dominick1
    Member

    *css

    .stack {
    position:relative;
    width:32px;
    height:32px;
    }
    .stack img {
    position:absolute;
    left:0;
    -webkit-transition: opacity 0.1s ease-in-out;
    -moz-transition: opacity 0.1s ease-in-out;
    -o-transition: opacity 0.1s ease-in-out;
    transition: opacity 0.1s ease-in-out;
    }
    .stack img.top:hover {
    filter: alpha(opacity=0);
    opacity: 0;
    -ms-filter: “progid:DXImageTransform.Microsoft.Alpha(Opacity=0)”;

    #mainwrap {
    height:1410px;
    width:2520px;

    #social {
    float: right;
    }

    *html

    • facebook
    • facebook
    #109557
    dominick1
    Member

    im sorry idk why that did that…the html is just an unordered list nothin crazy can sombody please help me figure out how to keep it in its own spot regardless if the browser window sizze changes or not. thank you

    #109560
    Paulie_D
    Member

    Please put your HTML/CSS in Codepen….it will be much easier for us.

    #109562
    dominick1
    Member

    http://codepen.io/anon/full/uhJiD <---link to the code pen

    #109563
    dominick1
    Member

    when you make the browser window smaller they dont go with it and stay in their proper place..

    #109566
    Paulie_D
    Member

    You have fixed width on your mainwrap and absolute positioned images…so nothing will move.

    You images aren’t showing up because they have not been linked to a live webserver.

    You have a lot of negative margins in there as well which seems odd.

    If you want your site to be responsive you are going to have to start using percentages.

    #109567
    dominick1
    Member

    ok your right i shouldnt be using negative margins..im a rookie to web coding…i am a graphic designer and trying to learn…so what do i need to do to make the main wrap and everything so it stays in the right spot?

    #109568
    dominick1
    Member

    even when i make the mainwrap relative positioning it doesnt do anything…what am i doing wrong

    #109569
    dominick1
    Member

    like what would be the correct way to code this?

    #109570
    Paulie_D
    Member

    We’d need to see a mockup…just generally, of what it is you are trying to achieve before being able to help more.

    Do you have an image of what the site is supposed to look like?

    #109575
    dominick1
    Member

    no i dont..i am just trying to set the menu in the center and the social media images in the right hand corner and when i move the browser window they stay where they are supposed to stay like when the website opens on a larger screen not be alll out of place…i know this is probably a stupid easy thing to accomplish but i am having alot of trouble with it…

    #109576
    Paulie_D
    Member

    Are the social media sections supposed to stay at the top if you scroll down?

Viewing 15 posts - 1 through 15 (of 16 total)
  • The forum ‘CSS’ is closed to new topics and replies.