- This topic is empty.
-
AuthorPosts
-
September 8, 2012 at 3:53 am #39733dominick1Member
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!!!!!!!
September 8, 2012 at 4:36 am #109535Paulie_DMemberCan you mock it up on Codepen or provide a link to a live site?
September 8, 2012 at 8:01 am #109540Kitty GiraudelParticipantSeconded. Please make a reduced test case on CodePen, JSFiddle, Dabblet or whatever. Hard to help without any code.
September 8, 2012 at 1:31 pm #109556dominick1Member*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
September 8, 2012 at 1:33 pm #109557dominick1Memberim 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
September 8, 2012 at 2:55 pm #109560Paulie_DMemberPlease put your HTML/CSS in Codepen….it will be much easier for us.
September 8, 2012 at 2:58 pm #109562dominick1Memberhttp://codepen.io/anon/full/uhJiD <---link to the code pen
September 8, 2012 at 2:59 pm #109563dominick1Memberwhen you make the browser window smaller they dont go with it and stay in their proper place..
September 8, 2012 at 3:35 pm #109566Paulie_DMemberYou 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.
September 8, 2012 at 4:11 pm #109567dominick1Memberok 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?
September 8, 2012 at 4:20 pm #109568dominick1Membereven when i make the mainwrap relative positioning it doesnt do anything…what am i doing wrong
September 8, 2012 at 4:22 pm #109569dominick1Memberlike what would be the correct way to code this?
September 8, 2012 at 5:07 pm #109570Paulie_DMemberWe’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?
September 8, 2012 at 6:21 pm #109575dominick1Memberno 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…
September 8, 2012 at 6:23 pm #109576Paulie_DMemberAre the social media sections supposed to stay at the top if you scroll down?
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.