Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

3 Neutral

About newcoder1010

  • Rank

Recent Profile Visitors

24,440 profile views
  1. https://docs.google.com/document/d/19mUV6yJ6aVSmEHZm3haZi2I9PrV_BB2-s88RuaiMOfk/edit?usp=sharing
  2. Hello, HTML: <div class="col-md-6 col-lg-6 col-xs-12 col-sm-6"> <div class="field1"> <img src="/sites/default/files/2020-10/plumbing-dc_1.png" width="100%" alt="Your Plumbing" class="img-responsive"></div> <div class="footer"><h2>YOUR COMPANY NAME WHO WE ARE SUMMARY GOES HERE </h2></div> </div> I like to place the footer element on the bottom of the field1 class. Below css works except for the background color. I do not see the bg color. I can see the bg color if I remove the margin-top. .footer { background: red; z
  3. Hello, https://www.w3schools.com/java/showjava.asp?filename=demo_hashset_add package Hash; import java.util.HashSet; public class HashSet { public static void main(String[] args) { HashSet<String> cars = new HashSet<String>(); cars.add("Volvo"); cars.add("BMW"); cars.add("Ford"); cars.add("BMW"); cars.add("Mazda"); System.out.println(cars); } } Error: "The type HashSet is not generic; it cannot be parameterized with arguments <String>" Please advise!
  4. .portfolio was the parent class of the the field. Now I changed it to the .field img and it worked. Below was helpful. object-fit: cover; Thanks!
  5. I changed image height to 100%. It is bit better. If I keep over flow -x or not, it does not make difference. How can I make the image 300px height without stretching the image? Instead, I like to show part of the image by cropping top and bottom 10%. Perhaps something similar to background image position.
  6. https://drive.google.com/file/d/1KXOhEJYt8SJdX0VY4FrAdMc1_q4RTM5p/view?usp=sharing <div class="field field--name-field-image1 field--type-image field--label-hidden field--item"> <img src="/sites/default/files/2020-09/house-5.png" width="1895" height="837" alt="test" typeof="foaf:Image" class="img-responsive"> </div> .field.field--name-field-image1.field--type-image.field--label-hidden.field--item { height: 300px; overflow-x: hidden; background: red; } .portfolio img { border: 0; height: auto; /* width: 50%; */ float: left; height
  7. img{overflow-x: hidden; border: 0; width: 50%; float: left; height: 500px;} It did not make any difference whether I keep overflow-x:hidden; or not.
  8. Hello, <div class="field field--name-field-image field--type-image field--label-hidden field--item"> <img src="/sites/default/files/2020-09/singe-house-5_0.png" width="1895" height="837" alt="uyg" typeof="foaf:Image" class="img-responsive"> </div> HTML has the image url and the original dimension. I cant change that. I like the image to be 500px height and 100% width. However, when I give 500px height, it does not look good proportionally. Height:auto it changes height by itself but I need fixed 500px height. img { border: 0; width: 100%;
  9. Hello, HTML <section data-quickedit-entity-id="block_content/56" id="block-portfolio1" class="col-md-12 col-lg-12 col-xs-12 col-sm-12 portfolio-one portfolio contextual-region block block-block-content block-block-contentb542f11a-fbd5-4ebe-8669-f57d84c42429 clearfix" data-quickedit-entity-instance-id="0"> <h2 class="block-title">Portfolio 1</h2> <div data-contextual-id="block:block=portfolio1:langcode=en|block_content:block_content=56:changed=1600966868&amp;langcode=en" data-contextual-token="tCd_R3tnlsGqN3Xah99BjMqmcUUXb1goeAqz0iUHUOg" class="contextual"&g
  10. It worked with the first two lines. Last line puts comma at the end so I did not use the last line. Thanks!
  11. Hello, <div data-quickedit-field-id="block_content/56/field_states/en/full" class="field field--name-field-states field--type-list-string field--label-above quickedit-field"> <div class="field--label">States</div> <div class="field--items"> <div class="field--item">Arizona</div> <div class="field--item">Florida</div> <div class="field--item">Iowa</div> <div class="field--item">Vermont</div> </div> </div> Currently they are list
  12. Hello, <td headers="view-field-units-table-column" class="views-field views-field-field-units">1234 </td> How can I place comma in this format depending on the number of digits? 1234 > 1,234 12345> 12,345 123456>123,456 Thanks!
  13. Hello, HTML source code: https://www.walmart.com/ip/Parent-s-Choice-Diapers-Size-3-36-Diapers/14912811 If you view html source code, you will see the upc code. "standardusItemId":"401199665","upc":"681131167444","fetched":true, I like to write a program to just print the code(value only). String str = driver.getPageSource(); System.out.println("-----"); System.out.println(str); System.out.println("field" + str.indexOf("upc")); System.out.println("value" + str.indexOf("6
  • Create New...