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 8266979
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T05:21:35+00:00 2026-06-08T05:21:35+00:00

What is wrong in my jquery? I would like to make my div bigger

  • 0

What is wrong in my jquery? I would like to make my div bigger depending on screen size and there is plenty of good examples, but still no success.

.picLeft {
    border: 4px solid black;
    border-radius: 15px;
    width: 130px !important;-------> I need to change this
    height: 130px;-------> I need to change this
    text-align: center;
    background-color: white;
    margin: 10px !important;
    padding: 0px;
    float: left;
}

**EDIT TWO DIVS LIKE THAT**
var height = window.innerHeight;
var width = window.innerWidth;
console.log("height------->" +height);
console.log("width-------->" +width);
// <div class="ui-block-a picLeft" id="leftDiv">
//$("#leftDiv").css("width","300 !important"); NOT working
$(".picLeft").css("width","300 !important"); //NOT Working

<div class="ui-grid-a"   style="background-color:black">
    <div class="ui-block-a picLeft" id="leftDiv">
    <img src="images/nk100x100.jpg" data-theme="c"
                id="pictureId" />
</div>
    <div class="ui-block-b picRight">
        <img src="images/th100x100.jpg" data-theme="c" id="pictureId2"  />
    </div>
</div>

Thank you!
Sami

  • 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-08T05:21:36+00:00Added an answer on June 8, 2026 at 5:21 am

    You can use an expression in your css file something like the example below too:

    width: expression((document.body.clientWidth - 300)  + "px") !important;
    

    Thought it might be useful. You can also do conditional ones like this too:

    width: expression( document.body.clientWidth > 1000 ? "1000px" : "99%" ); 
    

    I know this isn’t what you asked but others have already given good examples; this is just an alternative.

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

Sidebar

Related Questions

i would like to load a smarty tpl partial inside a div with jquery,
I'm using this two plug-ins jquery.validate and jquery.form separately, but I would like to
I'm trying to make my first steps with jquery mobile and I would like
I would like to make an effect of swiping images using jQuery. When I
I use MVC and would like to submit a form via jquery, but for
I try to pass variable from jquery to code c# but something is wrong.
Not sure what I'm doing wrong but I can't get my JQuery AJAX call
This seems like it would be a simple question but I keep running into
I'm trying to make an HTTP Get request using JQuery, but I get an
I would like to send this textfield value to a php file using jQuery.

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.