Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8441111
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:28:49+00:00 2026-06-10T08:28:49+00:00

I’m trying to create responsive design webpage. it works well with my table and

  • 0

I’m trying to create responsive design webpage. it works well with my table and text (when I resize my browser, it resize automatically. but this does not happen to my picture.

CSS file:

@media screen and (max-width: 999px) {
 .page {
    width: 720px;
 }
 .header {
    width:720px;
 }
 img{
    width: 720px;
 }
}

@media screen and (max-width: 719px) {
 .page {
    width: 100%;
 }
 .header {
    width:100%;
 }
 img {
    width: 100%;
 }
}

@media screen and (max-width: 479px) {
 .page {
    width: 98%;
 }
 .header{
    width: 98%;
 }
}

.page {
  width: 960px;
  background-color: #fff;
  margin: 20px auto 0 auto; 
  border: 1px solid #496077;
}

img {
  float: left;
  width: 48%;
  margin: 0 1%;
}

My .aspx file:

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <h2>
        Welcome to ASP.NET!
    </h2>
    <p>
        To learn more about ASP.NET visit <a href="http://www.asp.net" title="ASP.NET Website">www.asp.net</a>.
    </p>
    <p>
        You can also find <a href="http://go.microsoft.com/fwlink/?LinkID=152368&amp;clcid=0x409"
            title="MSDN ASP.NET Docs">documentation on ASP.NET at MSDN</a>.
    </p>
    <table border = "1">
<tr>
<td><center>'''Learning Outcome'''</center></td>
<td><center>'''Achievement Methods'''</center></td>
</tr>

<tr>
<td>Realistic problem solving and learning to learn skills</td>
<td>
my text here
</td> 
</tr>

<tr>
<td>Managing a real-time project from initiation to rollout </td>
<td>
my text here
</td>
</tr>

<tr>
<td>Understanding banking industry processes & practices</td>
<td>
my text here
</td>
</tr>

<tr>
<td>Team Cohesiveness</td>
<td>
*my text here
</td>
</tr>


</table>

<div>
    <img src="http://files.g4tv.com/images/blog/2008/06/18/633493967095957891.jpg" class="img" alt="DOMO">
    <img src="http://files.g4tv.com/images/blog/2008/06/18/633493967095957891.jpg" class="img" alt="image">
</div>

My text is responsive but my pictures are not, see the example at jsfiddle:
jsFiddle

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T08:28:51+00:00Added an answer on June 10, 2026 at 8:28 am

    If you already have media-query stuff in place (and if you want full control over your image sizes) I would use those pixel widths you provided for images, If you are really doing more like a fluid-grid than column-based and you would like to scale your img all the time when resizing, I would try to use:

    img{
        max-width: 100%;    
        _width: 100%;
    }
    

    As a side note: when you are dealing with responsive design page you should consider swapping larger images to smaller (or hiding them) when moving from desktop towards a mobile – this is because network latency, scaling big images to fit smaller devices screens takes more loading time to your page than using alternative e.g. mobile layout images instead.

    Edit:

    You are specifying img styles outside of your media queries, so you are always overriding your previous if they are even set in place – you should always specify default styles at start of the css file then followed by media-query rules (because they are screen-width specific), also it seems that your media-query widths are very ad-hoc I would use following base for a starters: (mobile first approach).

    /* MOBILE PORTRAIT */
    @media only screen and (min-width: 320px) {
    /* your styles */
    }
    
    /* MOBILE LANDSCAPE */
    @media only screen and (min-width: 480px) {
    /* your styles */
    }
    
    /* SMALL TABLET */
    @media only screen and (min-width: 600px) {
    /* your styles */
    }
    
    /* TABLET/NETBOOK */
    @media only screen and (min-width: 768px) { 
    /* your styles */
    }
    
    /* LANDSCAPE TABLET/NETBOOK/LAPTOP */
    @media only screen and (min-width: 1024px) { 
    /* your styles */
    }
    
    /* DESKTOP */
    @media only screen and (min-width: 1280px) { 
    /* your styles */
    }
    
    /* WIDESCREEN */
    /* Increased body size for legibility */
    @media only screen and (min-width: 1400px) { 
     /* your styles */
    }
    

    If you had problems with your current file consider also fixing your html headers and providing more accurate info next time :).. designing responsive grid is not easy and there are multiple resources in network to get started when trying to do so. For example: http://fluidbaselinegrid.com/ and http://twitter.github.com/bootstrap/ inspect their code through and learn.. what comes to me, I’m not trying to invent wheel again, I just select ready made responsive design grids/frameworks as a base based on project I am currently working with. Good luck, and sorry for the overkill answer!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.