Ty Meador's Profile User Rating: -----

Reputation: 5 Worker
Group:
Active Members
Active Posts:
164 (0.1 per day)
Joined:
23-May 11
Profile Views:
2,690
Last Active:
User is offline Aug 14 2015 09:01 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Linux
Favorite Browser:
Chrome
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Chevrolet
Dream Kudos:
0

Latest Visitors

Icon   Ty Meador has not set their status

Posts I've Made

  1. In Topic: Inline-Block pushes down elements even when top aligned

    Posted 12 Aug 2015

    Actually, just wrapping the three in their own div worked. I didn't even have to touch the CSS. can you explain why this is? (Updated the same fiddle as before the reflect my changes)
  2. In Topic: Inline-Block pushes down elements even when top aligned

    Posted 12 Aug 2015

    View Postandrewsw, on 12 August 2015 - 01:46 PM, said:

    I am a little confused because I would expect the next piece of the accordion to be pushed down.. so that I could see the content?

    It does on my machine.
  3. In Topic: Can you assign an empty string using short circuit evaluation?

    Posted 10 Aug 2015

    this.fax = (JSON.fax || JSON.offices[0].fax || "");
    


    EDIT: Time to REFACTOR! Here's whats happening. Basically, "this" (in the above code) is an object. This object is always passed a JSON object. The JSON object ALWAYS comes from either API-1 or API-2. IF it's passed API-1 JSON.fax will work. If it's passed API-2, JSON.fax will fail and JSON.office[0].fax will work. The problem? what if JSON.fax exists, but IS NULL :whistling: Answer: JSON.office[0].fax gets evaluated, and since it doesn't exist. I get an error. Thanks to andrewsw and ArtificalSoldier. You all always help me learn so much.
  4. In Topic: What would cause a div to ignore CSS positioning?

    Posted 28 Jul 2015

    Fantastic. And thank you for the resources! I feel dumb now that I See that. One final question. When I set the width of the rep box to 100% it horizontally overflows. What if I wanted the box to go to the padding of it's parent? (like set the width to 100% of parent element - padding)
  5. In Topic: What would cause a div to ignore CSS positioning?

    Posted 28 Jul 2015

    View Postandrewsw, on 28 July 2015 - 01:31 PM, said:

    That code doesn't include the changes I spoke about.

    Sorry, I had tried them then I used undo before posting. here is the code with the changes that still doesn't work
    <!DOCTYPE html>
    <html>
    	<head>
    		<style>
    		#overlay{
    			visibility: visible;
    			position: absolute;
    			left: 0px;
    			top: 0px;
    			width:100%;
    			height:100%;
    			text-align:left;
    			z-index: 1000;
    			opacity:1.0;
    		}
    
    		#overlay div{
    			width:50%;
    			height: 50%;
    			overflow: auto;
    			margin: 0px auto;
    			background-color: #fff;
    			border:1px solid #000;
    			padding:15px;
    			text-align:left;
    			opacity:1.0;
    		}
    		
    		#overlay .seniorSen, #overlay .juniorSen{
    			display:inline-block;
    			width: 40%;
    			height:40%;
    		}
    		
    		#overlay .seniorSen{
    			float: left;
    		}
    		
    		#overlay .juniorSen{
    			float: right;
    		}
    		
    		#overlay .rep{
    			display: inline-block;
    			margin-top:15px;
    			width: 94%;
    			margin: 0 auto;
    		}
    		</style>
    	</head>
    
    	<body>
    		<div id="overlay">
    			<div id="overlayContent">
    				<div id="seniorSen" class="seniorSen">
    					<img id="seniorSenPic" src="https://www.govtrack.us/data/photos/300072-100px.jpeg" alt="">
    					<h4 id="seniorSenName">Brett Guthrie</h4>
    					<p class="picLabel" id="seniorSenPicLabel">Senior Senator</p>
    				</div>
    				
    				<div id="juniorSen" class="juniorSen">
    					<img id="juniorSenPic" src="https://www.govtrack.us/data/photos/412492-100px.jpeg" alt="">
    					<p class="picLabel" id="juniorSenPicLabel">Junior Senator</p>
    				</div>
    				
    				<div id="rep" class="rep">
    					<img id="repPic" src="https://www.govtrack.us/data/photos/400431-100px.jpeg" alt="">
    					<p id="repPicLabel" src="" alt="">Representative</p>
    				</div>
    			</div>
    		</div>	
    	</body>
    </html>
    

My Information

Member Title:
D.I.C Head
Age:
22 years old
Birthday:
July 5, 1993
Gender:
Years Programming:
4
Programming Languages:
C++, Java,HTML,CSS,MySQL

Contact Information

E-mail:
Click here to e-mail me

Friends

Comments

Ty Meador has no profile comments yet. Why not say hello?